API Reference
Image upload (www.linkedin.com)PUTUpload the image bytesGETDownload an image
Campaigns

Get a campaign

GET/rest/adAccounts/{id}/adCampaigns/{id}
Base URL: https://linkedin-ads.mimicr.dev · provider: https://api.linkedin.com

Returns 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

LinkedIn-Versionstringrequired

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.

Example: "202610"
X-Restli-Protocol-Versionstringrequired

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.0

Path parameters

idstringrequired

Ad account id (first {id}) and campaign id (second {id}).

Query parameters

fieldsstring

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.
idinteger

Campaign id; the URN is urn:li:sponsoredCampaign:{id}.

accountstring

urn:li:sponsoredAccount:{id}, the account of the path.

campaignGroupstring

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.

namestring

Name.

typestring

Campaign type. SPONSORED_INMAILS and DYNAMIC answer 501 in Mimicr.

TEXT_ADSPONSORED_UPDATESSPONSORED_INMAILSDYNAMIC
formatstring

Ad 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_ADUNSUPPORTED
objectiveTypestring

Objective. Immutable (IMMUTABLE_CAMPAIGN_OBJECTIVE_TYPE). The plural legacy forms (WEBSITE_VISITS, VIDEO_VIEWS) are accepted and returned singular.

BRAND_AWARENESSENGAGEMENTJOB_APPLICANTLEAD_GENERATIONWEBSITE_CONVERSIONWEBSITE_VISITVIDEO_VIEW
costTypestring

Cost type.

CPMCPCCPV
unitCostobject

Bid, 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
amountstringrequired

Decimal string in major units ("150.00"), not micros or cents.

currencyCodestringrequired

ISO 4217 code. Must be the ad account's currency (CURRENCY_MISMATCH).

optimizationTargetTypestring

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_LEADS
dailyBudgetobject

Daily budget. At least one of dailyBudget and totalBudget. Minimum BRL 50.00 / USD 10.00.

Show child attributes
amountstringrequired

Decimal string in major units ("150.00"), not micros or cents.

currencyCodestringrequired

ISO 4217 code. Must be the ad account's currency (CURRENCY_MISMATCH).

totalBudgetobject

Lifetime budget, at least dailyBudget. Minimum BRL 500.00 / USD 100.00. $delete it to remove.

Show child attributes
amountstringrequired

Decimal string in major units ("150.00"), not micros or cents.

currencyCodestringrequired

ISO 4217 code. Must be the ad account's currency (CURRENCY_MISMATCH).

pacingStrategystring

Create-only.

LIFETIMEACCELERATED
runScheduleobject

start 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
startinteger

Start, epoch milliseconds (inclusive).

endinteger

End, epoch milliseconds (exclusive).

localeobject

Required, a supported pair ({"country":"BR","language":"pt"}).

Show child attributes
countrystring

Country code (BR).

languagestring

Language code (pt).

targetingCriteriaobject

Targeting criteria. A facet can't be in both include and exclude; ageRanges, genders, groups and interfaceLocales are include-only.

Show child attributes
includeobject

Who to target. interfaceLocales and exactly one of locations/profileLocations are required.

Show child attributes
andobject[]

Clauses AND'ed together.

Show child attributes
orobject

Facet URN → list of value URNs, OR'ed.

excludeobject

Who to exclude (one or, no and).

Show child attributes
orobject

Facet URN → list of value URNs.

offsiteDeliveryEnabledboolean

LinkedIn Audience Network. Required. Not allowed for TEXT_AD, or for LEAD_GENERATION in Mimicr (CONDITIONAL_INVALID_VALUE).

audienceExpansionEnabledboolean

Audience expansion, default false.

creativeSelectionstring

How creatives rotate, default OPTIMIZED.

ROUND_ROBINOPTIMIZED
associatedEntitystring

Organization or person the ads speak for. Defaults to the account's reference. Immutable for Sponsored Content.

politicalIntentstring

Required when the targeting includes an EU location; elsewhere it defaults to NOT_DECLARED (Mimicr's decision).

POLITICALNOT_POLITICALNOT_DECLARED
statusstring

Create 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_DELETIONREMOVED
servingStatusesstring[]

Read-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_HOLD
testboolean

Inherited from the account.

accountInfoobject

Additional Info Field, only when projected.

Show child attributes
idinteger
namestring
currencystring
typestring
statusstring
campaignGroupInfoobject

Additional Info Field, only when projected.

Show child attributes
idinteger
namestring
statusstring
changeAuditStampsobject

Creation and last change.

Show child attributes
createdobject
Show child attributes
actorstring

Member who made the change (urn:li:person:…).

timeinteger

Epoch milliseconds.

lastModifiedobject
Show child attributes
actorstring

Member who made the change (urn:li:person:…).

timeinteger

Epoch milliseconds.

versionobject

Entity version.

Show child attributes
versionTagstring

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.
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

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).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

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).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.

404Not found, or an ad account the member has no role on (LinkedIn answers 404 instead of 403 there).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.

426LinkedIn-Version sunset, unknown or not released: NONEXISTENT_VERSION "Requested version {version} is not active".
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.

429Daily quota of the application or the member reached: TOO_MANY_REQUESTS, with Retry-After (seconds to 00:00 UTC).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.