API Reference
Get a campaign
/rest/adAccounts/{id}/adCampaigns/{id}https://linkedin-ads.mimicr.dev · provider: https://api.linkedin.comReturns one campaign. Project accountInfo and campaignGroupInfo with fields to get the parents' names and statuses.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Headers
API version, YYYYMM (the latest is 202610). Missing → 400 VERSION_MISSING; sunset, unknown or unreleased → 426 NONEXISTENT_VERSION. 202511 stops on 2026-11-16 by the sandbox clock.
"202610"Always 2.0.0. Calls that use the 2.0 syntax (List(…), (key:value), encoded URN keys) without it answer 400 "Invalid query parameters passed to request".
2.0.0Path parameters
Ad account id (first {id}) and campaign id (second {id}).
Query parameters
Projection: comma-separated fields to return (id,name,referenceInfo). Additional Info Fields such as referenceInfo, accountInfo and campaignGroupInfo only come when projected.
Responses
200The campaign.
Campaign id; the URN is urn:li:sponsoredCampaign:{id}.
urn:li:sponsoredAccount:{id}, the account of the path.
urn:li:sponsoredCampaignGroup:{id} of the same account. If omitted and the account has one group, that group is used; with several → MISSING_CAMPAIGN_GROUP_ID.
Name.
Campaign type. SPONSORED_INMAILS and DYNAMIC answer 501 in Mimicr.
TEXT_ADSPONSORED_UPDATESSPONSORED_INMAILSDYNAMICAd format. If unset, the first creative sets it. Mimicr covers STANDARD_UPDATE, SINGLE_VIDEO and TEXT_AD; the others answer 501. Immutable outside DRAFT.
CAROUSELFOLLOW_COMPANYJOBSSINGLE_VIDEOSPONSORED_INMAILSPONSORED_MESSAGESPONSORED_UPDATE_EVENTSPOTLIGHTSTANDARD_UPDATETEXT_ADUNSUPPORTEDObjective. Immutable (IMMUTABLE_CAMPAIGN_OBJECTIVE_TYPE). The plural legacy forms (WEBSITE_VISITS, VIDEO_VIEWS) are accepted and returned singular.
BRAND_AWARENESSENGAGEMENTJOB_APPLICANTLEAD_GENERATIONWEBSITE_CONVERSIONWEBSITE_VISITVIDEO_VIEWCost type.
CPMCPCCPVBid, target cost or cost cap. 0 is valid but the campaign doesn't deliver. Below the floor for non-Sponsored-Update formats → FIELD_VALUE_TOO_LOW.
Show child attributes
Decimal string in major units ("150.00"), not micros or cents.
ISO 4217 code. Must be the ad account's currency (CURRENCY_MISMATCH).
Bidding/optimization goal, default NONE. It must fit the objective and costType (otherwise INVALID_CAMPAIGN_CONFIGURATION): MAX_CLICK → CPM, ENHANCED_CONVERSION → CPC, MAX_LEAD → CPM, MAX_VIDEO_VIEW → CPV. MAX_QUALIFIED_LEAD since 202602.
16 values
NONEENHANCED_CONVERSIONMAX_IMPRESSIONMAX_CLICKMAX_CONVERSIONMAX_VIDEO_VIEWMAX_LEADMAX_QUALIFIED_LEADMAX_REACHTARGET_COST_PER_CLICKTARGET_COST_PER_IMPRESSIONTARGET_COST_PER_VIDEO_VIEWCAP_COST_AND_MAXIMIZE_CLICKSCAP_COST_AND_MAXIMIZE_IMPRESSIONSCAP_COST_AND_MAXIMIZE_VIDEO_VIEWSCAP_COST_AND_MAXIMIZE_LEADSDaily budget. At least one of dailyBudget and totalBudget. Minimum BRL 50.00 / USD 10.00.
Show child attributes
Decimal string in major units ("150.00"), not micros or cents.
ISO 4217 code. Must be the ad account's currency (CURRENCY_MISMATCH).
Lifetime budget, at least dailyBudget. Minimum BRL 500.00 / USD 100.00. $delete it to remove.
Show child attributes
Decimal string in major units ("150.00"), not micros or cents.
ISO 4217 code. Must be the ad account's currency (CURRENCY_MISMATCH).
Create-only.
LIFETIMEACCELERATEDstart can't be more than 5 minutes in the past on create; end must be after start. Neither can change once passed (DATE_IMMUTABLE_WHEN_PASSED).
Show child attributes
Start, epoch milliseconds (inclusive).
End, epoch milliseconds (exclusive).
Required, a supported pair ({"country":"BR","language":"pt"}).
Show child attributes
Country code (BR).
Language code (pt).
Targeting criteria. A facet can't be in both include and exclude; ageRanges, genders, groups and interfaceLocales are include-only.
Show child attributes
Who to target. interfaceLocales and exactly one of locations/profileLocations are required.
Show child attributes
Clauses AND'ed together.
Show child attributes
Facet URN → list of value URNs, OR'ed.
Who to exclude (one or, no and).
Show child attributes
Facet URN → list of value URNs.
LinkedIn Audience Network. Required. Not allowed for TEXT_AD, or for LEAD_GENERATION in Mimicr (CONDITIONAL_INVALID_VALUE).
Audience expansion, default false.
How creatives rotate, default OPTIMIZED.
ROUND_ROBINOPTIMIZEDOrganization or person the ads speak for. Defaults to the account's reference. Immutable for Sponsored Content.
Required when the targeting includes an EU location; elsewhere it defaults to NOT_DECLARED (Mimicr's decision).
POLITICALNOT_POLITICALNOT_DECLAREDCreate with ACTIVE, PAUSED or DRAFT (only DRAFT inside a DRAFT group). Then DRAFT → ACTIVE|PAUSED, ACTIVE ↔ PAUSED, ACTIVE|PAUSED → ARCHIVED, ARCHIVED → PAUSED|ACTIVE, any → PENDING_DELETION. COMPLETED is set by the system.
ACTIVEPAUSEDARCHIVEDCOMPLETEDCANCELEDDRAFTPENDING_DELETIONREMOVEDRead-only, computed on read: RUNNABLE or the holds of the campaign, its group and its account.
13 values
RUNNABLESTOPPEDACCOUNT_SERVING_HOLDACCOUNT_TOTAL_BUDGET_HOLDACCOUNT_END_DATE_HOLDCAMPAIGN_START_DATE_HOLDCAMPAIGN_END_DATE_HOLDCAMPAIGN_TOTAL_BUDGET_HOLDCAMPAIGN_AUDIENCE_COUNT_HOLDCAMPAIGN_GROUP_START_DATE_HOLDCAMPAIGN_GROUP_END_DATE_HOLDCAMPAIGN_GROUP_TOTAL_BUDGET_HOLDCAMPAIGN_GROUP_STATUS_HOLDInherited from the account.
Additional Info Field, only when projected.
Show child attributes
Additional Info Field, only when projected.
Show child attributes
Creation and last change.
Show child attributes
Show child attributes
Member who made the change (urn:li:person:…).
Epoch milliseconds.
Show child attributes
Member who made the change (urn:li:person:…).
Epoch milliseconds.
Entity version.
Show child attributes
Starts at "1" and increments on every update.
400Invalid request: missing LinkedIn-Version (VERSION_MISSING), Rest.li 2.0 syntax without X-Restli-Protocol-Version or with unencoded URNs ("Invalid query parameters passed to request"), or invalid parameters.
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
401Missing token (Empty oauth2_access_token), invalid token (65600 INVALID_ACCESS_TOKEN), revoked (65601 REVOKED_ACCESS_TOKEN) or expired (65602 EXPIRED_ACCESS_TOKEN).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
403The token lacks the scope (ACCESS_DENIED, "Not enough permissions to access: {resource}.{METHOD}.{version}") or the member's role is too low (NO_PERMISSION_ON_ENTITY).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
404Not found, or an ad account the member has no role on (LinkedIn answers 404 instead of 403 there).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
426LinkedIn-Version sunset, unknown or not released: NONEXISTENT_VERSION "Requested version {version} is not active".
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
429Daily quota of the application or the member reached: TOO_MANY_REQUESTS, with Retry-After (seconds to 00:00 UTC).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.