Guides
Campaigns

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:

bash
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
FieldRule
accountThe account of the path (MISMATCH_FIELDS); immutable
nameUp to 200 bytes
runSchedule.startRequired, epoch ms
runSchedule.endRequired when totalBudget is set (CONDITIONAL_MISSING_FIELD: "/CampaignGroup/runSchedule/end is required if /CampaignGroup/totalBudget is set to 5000.0")
statusACTIVE or DRAFT on create
totalBudgetThe account's currency; a campaign can't have a totalBudget larger than what remains in the group (INSUFFICIENT_CAMPAIGN_GROUP_BUDGET)
dailyBudgetSince 202504, only with budgetOptimization.budgetOptimizationStrategy DYNAMIC
objectiveTypeOptional 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

bash
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
FieldRule
campaignGroupA group of the same account. If omitted and the account has one group, that group is used; with several, MISSING_CAMPAIGN_GROUP_ID
typeSPONSORED_UPDATES (image, article, video) or TEXT_AD. SPONSORED_INMAILS and DYNAMIC answer 501
formatOptional: STANDARD_UPDATE, SINGLE_VIDEO or TEXT_AD; if empty, the first creative sets it
objectiveTypeBRAND_AWARENESS, ENGAGEMENT, JOB_APPLICANT, LEAD_GENERATION, WEBSITE_CONVERSION, WEBSITE_VISIT, VIDEO_VIEW. Immutable
costType, unitCost, optimizationTargetTypeMust fit the objective (below)
dailyBudget, totalBudgetAt least one; the account's currency (CURRENCY_MISMATCH); totalBudget ≥ dailyBudget
localeRequired, a supported pair
targetingCriteriaRequired (see Targeting); the old targeting field answers TARGETING_FIELD_DEPRECATED
offsiteDeliveryEnabledRequired (LinkedIn Audience Network). Not allowed on TEXT_AD; in Mimicr not on LEAD_GENERATION either
politicalIntentRequired when the targeting includes an EU country; elsewhere it defaults to NOT_DECLARED (Mimicr's decision)
runSchedule.startCan't be more than 5 minutes in the past (DATE_TOO_EARLY)
statusACTIVE, PAUSED or DRAFT; inside a DRAFT group, only DRAFT

Objective, format and bidding

ObjectiveFormatsTypical combinations
BRAND_AWARENESSSTANDARD_UPDATE, SINGLE_VIDEO, TEXT_ADMAX_IMPRESSION or MAX_REACH with CPM
WEBSITE_VISITSTANDARD_UPDATE, SINGLE_VIDEO, TEXT_ADMAX_CLICK with CPM; NONE with CPC
ENGAGEMENTSTANDARD_UPDATE, SINGLE_VIDEOMAX_CLICK with CPM
VIDEO_VIEWSINGLE_VIDEOMAX_VIDEO_VIEW with CPV
LEAD_GENERATIONSTANDARD_UPDATE, SINGLE_VIDEOMAX_LEAD or MAX_QUALIFIED_LEAD (since 202602) with CPM
WEBSITE_CONVERSIONSTANDARD_UPDATE, SINGLE_VIDEO, TEXT_ADMAX_CONVERSION with CPM; ENHANCED_CONVERSION with CPC
JOB_APPLICANTSTANDARD_UPDATEMAX_CLICK with CPM

An invalid combination answers INVALID_CAMPAIGN_CONFIGURATION:

json
{ "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

CurrencyDaily minimumTotal minimumBid floor CPC / CPM / CPV
BRL50.00500.0010.00 / 10.00 / 0.25
USD10.00100.002.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:

bash
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" } } }'
# 204

On 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

TransitionRule
DRAFT → ACTIVE or PAUSEDRuns the postponed checks
ACTIVE ↔ PAUSEDFree
ACTIVE/PAUSED → ARCHIVED, ARCHIVED → PAUSED/ACTIVEFree
Any → PENDING_DELETIONBecomes REMOVED after 24 sandbox hours
COMPLETEDSet 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
CANCELEDComes 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:

bash
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'
json
{ "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" } }
  • 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.
  • objectiveType and format (outside DRAFT) 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).