Guides
Groups and campaigns
Create campaign groups and campaigns, fit objective, format and bidding, respect the budget minimums, activate, pause and read the serving statuses.
LinkedIn's hierarchy is ad account → campaign group → campaign → creative. The group organizes campaigns and can have its own budget and dates; the campaign has the objective, budget, bid and targeting; the creative is the ad (see Creatives and review).
Campaign groups
Every account starts with a "Default Campaign Group" (backfilled: true, ACTIVE, no budget). Create others when you want a budget or dates per group:
curl -si https://linkedin-ads.mimicr.dev/rest/adAccounts/521119150/adCampaignGroups \
--header 'Authorization: Bearer <token>' --header 'LinkedIn-Version: 202610' --header 'X-Restli-Protocol-Version: 2.0.0' \
--header 'Content-Type: application/json' \
--data '{
"account": "urn:li:sponsoredAccount:521119150",
"name": "Leads Q4",
"runSchedule": { "start": 1793949746951, "end": 1799133746951 },
"status": "ACTIVE",
"totalBudget": { "amount": "5000.00", "currencyCode": "BRL" }
}'
# 201, x-restli-id: 690078541| Field | Rule |
|---|---|
account | The account of the path (MISMATCH_FIELDS); immutable |
name | Up to 200 bytes |
runSchedule.start | Required, epoch ms |
runSchedule.end | Required when totalBudget is set (CONDITIONAL_MISSING_FIELD: "/CampaignGroup/runSchedule/end is required if /CampaignGroup/totalBudget is set to 5000.0") |
status | ACTIVE or DRAFT on create |
totalBudget | The account's currency; a campaign can't have a totalBudget larger than what remains in the group (INSUFFICIENT_CAMPAIGN_GROUP_BUDGET) |
dailyBudget | Since 202504, only with budgetOptimization.budgetOptimizationStrategy DYNAMIC |
objectiveType | Optional and immutable; the group's campaigns inherit it |
Group statuses: ACTIVE ↔ PAUSED, ACTIVE/PAUSED → ARCHIVED, ARCHIVED → PAUSED, DRAFT → ACTIVE and any → PENDING_DELETION. Any other change answers 400 STATUS_CHANGE_NOT_ALLOWED ("status can't be changed from ACTIVE to DRAFT"). DELETE only deletes DRAFT groups.
Campaigns
curl -si https://linkedin-ads.mimicr.dev/rest/adAccounts/521119150/adCampaigns \
--header 'Authorization: Bearer <token>' --header 'LinkedIn-Version: 202610' --header 'X-Restli-Protocol-Version: 2.0.0' \
--header 'Content-Type: application/json' \
--data '{
"account": "urn:li:sponsoredAccount:521119150",
"campaignGroup": "urn:li:sponsoredCampaignGroup:690078541",
"name": "Gás para empresas",
"type": "SPONSORED_UPDATES",
"objectiveType": "LEAD_GENERATION",
"costType": "CPM",
"optimizationTargetType": "MAX_LEAD",
"unitCost": { "amount": "45.00", "currencyCode": "BRL" },
"dailyBudget": { "amount": "150.00", "currencyCode": "BRL" },
"locale": { "country": "BR", "language": "pt" },
"targetingCriteria": { "include": { "and": [
{ "or": { "urn:li:adTargetingFacet:locations": ["urn:li:geo:106057199"] } },
{ "or": { "urn:li:adTargetingFacet:interfaceLocales": ["urn:li:locale:pt_BR"] } },
{ "or": { "urn:li:adTargetingFacet:seniorities": ["urn:li:seniority:5", "urn:li:seniority:6"] } } ] },
"exclude": { "or": { "urn:li:adTargetingFacet:industries": ["urn:li:industry:75"] } } },
"offsiteDeliveryEnabled": false,
"politicalIntent": "NOT_POLITICAL",
"status": "DRAFT"
}'
# 201, x-restli-id: 347365458| Field | Rule |
|---|---|
campaignGroup | A group of the same account. If omitted and the account has one group, that group is used; with several, MISSING_CAMPAIGN_GROUP_ID |
type | SPONSORED_UPDATES (image, article, video) or TEXT_AD. SPONSORED_INMAILS and DYNAMIC answer 501 |
format | Optional: STANDARD_UPDATE, SINGLE_VIDEO or TEXT_AD; if empty, the first creative sets it |
objectiveType | BRAND_AWARENESS, ENGAGEMENT, JOB_APPLICANT, LEAD_GENERATION, WEBSITE_CONVERSION, WEBSITE_VISIT, VIDEO_VIEW. Immutable |
costType, unitCost, optimizationTargetType | Must fit the objective (below) |
dailyBudget, totalBudget | At least one; the account's currency (CURRENCY_MISMATCH); totalBudget ≥ dailyBudget |
locale | Required, a supported pair |
targetingCriteria | Required (see Targeting); the old targeting field answers TARGETING_FIELD_DEPRECATED |
offsiteDeliveryEnabled | Required (LinkedIn Audience Network). Not allowed on TEXT_AD; in Mimicr not on LEAD_GENERATION either |
politicalIntent | Required when the targeting includes an EU country; elsewhere it defaults to NOT_DECLARED (Mimicr's decision) |
runSchedule.start | Can't be more than 5 minutes in the past (DATE_TOO_EARLY) |
status | ACTIVE, PAUSED or DRAFT; inside a DRAFT group, only DRAFT |
Objective, format and bidding
| Objective | Formats | Typical combinations |
|---|---|---|
BRAND_AWARENESS | STANDARD_UPDATE, SINGLE_VIDEO, TEXT_AD | MAX_IMPRESSION or MAX_REACH with CPM |
WEBSITE_VISIT | STANDARD_UPDATE, SINGLE_VIDEO, TEXT_AD | MAX_CLICK with CPM; NONE with CPC |
ENGAGEMENT | STANDARD_UPDATE, SINGLE_VIDEO | MAX_CLICK with CPM |
VIDEO_VIEW | SINGLE_VIDEO | MAX_VIDEO_VIEW with CPV |
LEAD_GENERATION | STANDARD_UPDATE, SINGLE_VIDEO | MAX_LEAD or MAX_QUALIFIED_LEAD (since 202602) with CPM |
WEBSITE_CONVERSION | STANDARD_UPDATE, SINGLE_VIDEO, TEXT_AD | MAX_CONVERSION with CPM; ENHANCED_CONVERSION with CPC |
JOB_APPLICANT | STANDARD_UPDATE | MAX_CLICK with CPM |
An invalid combination answers INVALID_CAMPAIGN_CONFIGURATION:
{ "status": 400, "serviceErrorCode": 10007, "code": "INVALID_CAMPAIGN_CONFIGURATION", "message": "ObjectiveType LEAD_GENERATION, CampaignFormat null, CampaignType SPONSORED_UPDATES, OptimizationTargetType MAX_VIDEO_VIEW, CostType CPM, OffsiteDeliveryEnabled false, audienceExpansionEnabled false is not a valid CampaignConfiguration" }Budget and bid minimums
| Currency | Daily minimum | Total minimum | Bid floor CPC / CPM / CPV |
|---|---|---|---|
| BRL | 50.00 | 500.00 | 10.00 / 10.00 / 0.25 |
| USD | 10.00 | 100.00 | 2.00 / 2.00 / 0.05 |
The BRL values and the floors are Mimicr's, based on LinkedIn's help pages; the USD total minimum is the one from the docs' error sample. Below the minimum: FIELD_VALUE_TOO_LOW ("/Campaign/dailyBudget/amount value 5.0 can't be lower than 50.00"). A unitCost of 0 is accepted, but the campaign doesn't deliver.
Activate
DRAFT postpones the targeting, audience and conversion checks until activation. Activate with a partial update:
curl -si https://linkedin-ads.mimicr.dev/rest/adAccounts/521119150/adCampaigns/347365458 \
--header 'Authorization: Bearer <token>' --header 'LinkedIn-Version: 202610' --header 'X-Restli-Protocol-Version: 2.0.0' \
--header 'X-RestLi-Method: PARTIAL_UPDATE' --header 'Content-Type: application/json' \
--data '{ "patch": { "$set": { "status": "ACTIVE" } } }'
# 204On activation: an audience under 300 → AUDIENCE_SIZE_TOO_SMALL; a conversion campaign without an associated rule → CONVERSION_CAMPAIGN_MISSING_ASSOCIATED_CONVERSION (see Conversions API); more than 1,000 ACTIVE campaigns in the account → FIELD_VALUE_TOO_HIGH.
Status and serving
| Transition | Rule |
|---|---|
DRAFT → ACTIVE or PAUSED | Runs the postponed checks |
ACTIVE ↔ PAUSED | Free |
ACTIVE/PAUSED → ARCHIVED, ARCHIVED → PAUSED/ACTIVE | Free |
Any → PENDING_DELETION | Becomes REMOVED after 24 sandbox hours |
COMPLETED | Set by the system when runSchedule.end passes or the totalBudget runs out. Goes back to ACTIVE only with a future end and the original start in the same patch |
CANCELED | Comes from the account being canceled; terminal (ACTION_NOT_ALLOWED_FOR_CANCELLED_STATUS) |
servingStatuses shows whether the campaign delivers: RUNNABLE, or the holds of the campaign, its group and its account (STOPPED, ACCOUNT_SERVING_HOLD, CAMPAIGN_GROUP_STATUS_HOLD, CAMPAIGN_START_DATE_HOLD, CAMPAIGN_END_DATE_HOLD, CAMPAIGN_TOTAL_BUDGET_HOLD, CAMPAIGN_AUDIENCE_COUNT_HOLD…). With budgets and dates on several levels, the most restrictive wins.
To read the campaign with its parents' names and statuses, project the Additional Info Fields:
curl -s 'https://linkedin-ads.mimicr.dev/rest/adAccounts/521119150/adCampaigns/347365458?fields=id,name,status,servingStatuses,accountInfo,campaignGroupInfo' \ --header 'Authorization: Bearer <token>' --header 'LinkedIn-Version: 202610' --header 'X-Restli-Protocol-Version: 2.0.0'
{ "id": 347365458, "name": "Gás para empresas", "status": "DRAFT", "servingStatuses": ["STOPPED"], "accountInfo": { "id": 521119150, "name": "Conta Principal", "currency": "BRL", "type": "BUSINESS", "status": "ACTIVE" }, "campaignGroupInfo": { "id": 690078541, "name": "Leads Q4 2026", "status": "ACTIVE" } }Edit, pause and search
- Budget:
{"patch": {"$set": {"dailyBudget": {"amount": "200.00", "currencyCode": "BRL"}}}}; remove the total:{"patch": {"$delete": ["totalBudget"]}}. - Pause:
{"patch": {"$set": {"status": "PAUSED"}}}. In bulk, use update campaigns in batch. objectiveTypeandformat(outsideDRAFT) are immutable; so are dates that have passed.- Search campaigns:
search=(campaignGroup:(values:List(urn%3Ali%3AsponsoredCampaignGroup%3A690078541)),status:(values:List(ACTIVE,DRAFT))), with cursor pagination.
The campaign.complete action ends a campaign as if its end date had passed, and the [sem-entrega] trigger in the name keeps the campaign eligible but without delivery (see Testing in the sandbox).