API Reference
Image upload (www.linkedin.com)PUTUpload the image bytesGETDownload an image
Member, accounts and roles

Create ad accounts

POST/rest/adAccounts
Base URL: https://linkedin-ads.mimicr.dev · provider: https://api.linkedin.com

Creates a BUSINESS ad account (CREATE), or several with X-RestLi-Method: BATCH_CREATE and {"elements": […]}. The member becomes ACCOUNT_BILLING_ADMIN and a default campaign group is created with the account. Scope rw_ads.

In the development access tier, Mimicr adds new accounts to the tier's list of 5 writable accounts while there is room. With homolog.autoBilling on (default) the account is RUNNABLE; otherwise, or with [billing-hold] in the name, it starts on BILLING_HOLD.

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

Body

application/json
idinteger

Ad account id; the URN is urn:li:sponsoredAccount:{id}.

namestring

Name. Required and not blank (BLANK_ACCOUNT_NAME).

typestring

Only BUSINESS can be created; ENTERPRISE → 400 INVALID_VALUE_FOR_FIELD.

BUSINESSENTERPRISE
currencystring

ISO currency, default USD. Unsupported → CURRENCY_NOT_SUPPORTED.

referencestring

Organization or person the account advertises for (urn:li:organization:…). Immutable once the account has campaigns.

statusstring

Account status.

ACTIVECANCELEDDRAFTPENDING_DELETIONREMOVED
servingStatusesstring[]

Read-only, computed on read: RUNNABLE or the holds.

RUNNABLESTOPPEDBILLING_HOLDACCOUNT_TOTAL_BUDGET_HOLDACCOUNT_END_DATE_HOLDRESTRICTED_HOLDINTERNAL_HOLD
testboolean

Test account. Create-only; at most one per developer app (TEST_ACCOUNT_LIMIT_REACHED). Its creatives are rejected and it has no analytics.

notifiedOnCampaignOptimizationboolean
notifiedOnCreativeApprovalboolean
notifiedOnCreativeRejectionboolean
notifiedOnEndOfCampaignboolean
notifiedOnNewFeaturesEnabledboolean
referenceInfoobject

Additional Info Field: returned only when projected (fields=…,referenceInfo).

Show child attributes
organizationobject
Show child attributes
idinteger

Organization id.

nameobject

Localized text.

Show child attributes
localizedobject

Text per locale ({"pt_BR": "…"}).

preferredLocaleobject
Show child attributes
countrystring

Country code (BR).

languagestring

Language code (pt).

vanityNamestring

Vanity name (mimicr-demo).

localizedNamestring

Name.

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.

Responses

200BATCH_CREATE: one result per element.
elementsobject[]

One per element, in order; failed elements carry the error and the others are still created.

Show child attributes
statusinteger

201, or the error status of that element.

idstring

Id of the new entity.

locationstring

Path of the new entity.

201Created. The id is in the x-restli-id header (empty body).
400Validation error in the new error schema (code, errorDetails.inputErrors; several errors → MULTIPLE_VALIDATIONS_FAILED), or a Rest.li or version error in the old one.
ErrorNew
statusinteger

HTTP status.

serviceErrorCodeinteger

10007 for validation errors, 100 for permission errors, 0 otherwise.

codestring

Error code, such as FIELD_VALUE_TOO_LOW, MISSING_FIELD, INVALID_STATUS_TRANSITION or MULTIPLE_VALIDATIONS_FAILED (several errors; see errorDetails).

163 values
ACTION_NOT_ALLOWED_FOR_CANCELLED_STATUSAUDIENCE_SIZE_TOO_SMALLBILLING_NOT_EDITABLE_FOR_LMS_ENTERPRISECAMPAIGN_GROUP_CREATION_NOT_ALLOWEDCANNOT_UPDATE_BACKFILLED_CAMPAIGN_GROUPSCONDITIONAL_FIELD_NOT_ALLOWEDCONDITIONAL_INVALID_VALUECONDITIONAL_MISSING_FIELDCONDITIONAL_VALUE_TOO_HIGHCONDITIONAL_VALUE_TOO_LOWCONVERSION_CAMPAIGN_MISSING_ASSOCIATED_CONVERSIONCREATE_NOT_ALLOWED_WITH_FAILED_CREATIVESDATE_IMMUTABLE_WHEN_PASSEDDATE_TOO_EARLYDELETE_ALLOWED_ONLY_FOR_DRAFT_STATUSENTITY_WITH_SAME_KEY_ALREADY_EXISTSFAILED_TO_GET_VALID_CAMPAIGN_CONFIGURATIONFAILED_TO_PROCESS_CAMPAIGN_FOR_AUDIENCE_SIZE_ESTIMATIONFAILED_TO_PROCESS_TARGETING_CRITERIAFAILED_TO_RETRIEVE_AUDIENCE_SIZEFAILED_TO_RETRIEVE_SEGMENTSFAILED_TO_SETUP_ACCOUNT_REPORTINGFAILED_TO_VALIDATE_AGAINST_ALLOWED_CAMPAIGN_TYPESFIELD_CANNOT_BE_BOTH_IN_INCLUDED_AND_EXCLUDED_TARGETINGFIELD_IMMUTABLE_FOR_NON_DRAFT_CAMPAIGNSFIELD_LENGTH_TOO_LONGFIELD_NOT_ALLOWED_FOR_ENTERPRISE_LMS_ACCOUNTSFIELD_NOT_ALLOWEDFIELD_VALUE_DOES_NOT_EXISTFIELD_VALUE_NOT_ACTIVEFIELD_VALUE_NOT_ALLOWED_FOR_SEGMENT_STATUSFIELD_VALUE_TOO_HIGHFIELD_VALUE_TOO_LOWIMMUTABLE_ASSOCIATED_ENTITYIMMUTABLE_CAMPAIGN_FLOOR_PRICEIMMUTABLE_CAMPAIGN_OBJECTIVE_TYPEIMMUTABLE_CAMPAIGN_TARGETING_AD_ZONESINSUFFICIENT_CAMPAIGN_GROUP_BUDGETINVALID_CAMPAIGN_CONFIGURATIONINVALID_ENTITLEMENT_FOR_TALENT_LEADINVALID_OBJECTIVE_TYPE_WITH_MYNETWORK_DELIVERYINVALID_PAST_ATTRIBUTE_COMBINATIONINVALID_SEGMENT_ID_AND_FACET_COMBINATION_PROVIDEDINVALID_BILLING_REFERENCEINVALID_BILLING_PARENT_REFERENCEINVALID_VALUE_BLANK_FIELDINCOMPATIBLE_TARGETING_COMBINATIONINVALID_VALUE_DUPLICATE_EXISTINVALID_VALUE_FOR_FIELDMISMATCH_FIELDSMISSING_CAMPAIGN_GROUP_IDMISSING_FIELDMISSING_POSITIVE_OPTIONMULTIPLE_VALIDATIONS_FAILEDMULTIPLE_VALUES_NOT_ALLOWEDNONCHARGEABLE_NOT_ALLOWED_UNLESS_ACTIVE_ACCOUNTNO_DELETE_ON_LMS_ENTERPRISE_CAMPAIGN_GROUPSNO_PERMISSION_ON_ENTITYNO_PERMISSION_ON_FIELDNO_PERMISSION_TO_UPDATEOBJECTIVE_CHANGE_NOT_ALLOWEDONLY_DRAFT_CAMPAIGNS_ALLOWED_IN_DRAFT_CAMPAIGN_GROUPSSPONSORING_LANDING_PAGE_NOT_ALLOWEDSTART_DATE_AFTER_END_DATESTATUS_CHANGE_NOT_ALLOWEDTARGETING_ADZONE_CHANGE_NOT_ALLOWEDTARGETING_ADZONE_COMBINATION_INVALIDTARGETING_FIELD_DEPRECATEDNOT_FOUNDTIMEOUTCONFLICTPRECONDITION_FAILEDINTERNAL_ERRORNOT_IMPLEMENTEDUNDER_MAINTENANCEBATCH_CREATE_TEST_ACCOUNT_LIMIT_REACHEDBLANK_ACCOUNT_NAMECURRENCY_MISMATCHCURRENCY_NOT_SUPPORTEDDELETE_NOT_ALLOWEDINVALID_STATUS_TRANSITIONMISSING_PRODUCT_TYPE_FOR_ENTERPRISE_ACCOUNTTEST_ACCOUNT_LIMIT_REACHEDUPDATE_REFERENCE_NOT_ALLOWEDACCOUNT_ID_MISMATCH_IN_PARAM_AND_BODYMEMBER_HAD_UNCONFIRMED_EMAILMULTIPLE_ACCOUNTS_UNSUPPORTEDUSER_MISMATCH_IN_PARAM_AND_BODYACTION_CONDITIONALLY_NOT_ALLOWEDBATCH_OPERATION_CANNOT_HAVE_MULTI_AD_FORMATSBRAND_LIFT_POLL_INVALID_SHARE_MEDIA_CATEGORYBRAND_LIFT_POLL_NON_DARK_POST_CREATIVEBUTTON_LABEL_REQUIRED_FOR_JOBS_POSTINGCAMPAIGN_EXCEEDING_CREATIVE_TYPE_LIMITCANNOT_UPDATE_CANCELED_CREATIVECAROUSEL_NON_ACTIVITY_REFERENCECONDITIONAL_IMMUTABLE_FIELDCPC_CAMPAIGN_INVALID_AD_TYPECREATIVE_CONTENT_NOT_ASSOCIATED_WITH_LANDING_PAGE_URLCREATIVE_CONTENT_NOT_ASSOCIATED_WITH_VALID_PIPELINE_BUILDER_URLCREATIVE_CONTENT_NOT_ASSOCIATED_WITH_VALID_PIPELINE_BUILDER_URL_OR_EVENT_PAGE_URLCREATIVE_NOT_ALLOWED_IN_CAMPAIGNCTA_REQUIRED_FOR_LEAD_GENDATE_CONDITIONAL_TOO_EARLYDIRECT_SPONSORED_CONTENT_MISMATCHDYNAMIC_ADS_MISSING_AD_FORMATEMPTY_FIELDFAILED_TO_EXTRACT_COMPANY_IDFAIL_TO_RETRIEVE_DIRECT_SPONSORED_CONTENTFAIL_TO_RETRIEVE_UPDATEFIELD_CONDITIONALLY_NOT_ALLOWEDFIELD_NOT_ALLOWED_ON_CREATIONFIELD_NOT_EDITABLEFIELD_VALUE_TOO_LONGFOLLOW_COMPANY_V2_NONEMPTY_CLICK_URIHEADLINE_REQUIRED_FOR_JOBS_POSTINGIMAGE_URN_EXCLUSIVE_WITH_IMAGE_IDIMMUTABLE_FIELDINVALID_CLICK_URIINVALID_HREFINVALID_PARENT_CAMPAIGN_TYPEINVALID_URN_TYPEINVALID_VALUE_NOT_ACTIVEINVALID_VALUE_NOT_EXISTJOBS_CREATIVE_INVALID_AD_FORMATJOB_POSTING_CANNOT_BE_FETCHEDJOB_STATE_NOT_LISTED_BUT_CREATIVE_IS_ACTIVEMISSING_FIELD_IN_VALUEORGANIC_STORY_UGC_INVALID_CTA_LABELPARENT_URN_KEY_NOT_FOUNDPOLI_LINK_FOLLOW_TEXT_MISMATCHPOLL_STICKERS_NOT_SUPPORTED_FOR_STORIESREFERENCED_EVENT_CANNOT_HAVE_CANCELED_STATUSREFERENCED_EVENT_END_TIME_PASSEDREFERENCED_EVENT_ORGANIZER_MISMATCHREFERENCE_MEDIA_CATEGORY_AND_CAMPAIGN_FORMAT_MISMATCHREFERENCE_NOT_ALLOWED_FOR_TEXT_AD_CREATIVESINMAIL_INVALID_INMAIL_CONTENTSPONSORED_JOB_POSTING_NON_UGC_REFERENCESPONSORED_UPDATE_JOB_POSTING_NON_JOB_REFERENCESPONSORED_UPDATE_JOB_POSTING_NON_SHARING_CONTENTSPONSORED_VIDEO_NON_SHAREABLE_CONTENTSPONSORED_VIDEO_NON_UGC_REFERENCESPONSORED_VIDEO_NON_VIDEO_REFERENCESPOTLIGHT_NOT_ASSOCIATED_WITH_VALID_PIPELINE_BUILDER_URLSSU_NON_ACTIVITY_REFERENCETRANSITION_CONDITIONALLY_NOT_ALLOWEDTRANSITION_NOT_ALLOWEDUGC_EXCEEDING_IMAGE_LIMITUGC_INVALID_FEED_DISTRIBUTIONUGC_INVALID_SHARE_MEDIA_CATEGORYUGC_INVALID_VISIBILITY_SETTINGUGC_NON_SHARING_CONTENT_ERRORUGC_RESHARE_CANNOT_BE_SPONSOREDUNAUTHORIZED_ACCESS_TO_CHANGE_THE_REVIEWUNSAFE_HREFVIDEO_INVALID_HEIGHTVIDEO_LENGTH_TOO_LONGVIDEO_LENGTH_TOO_SHORTVIDEO_UNSUPPORTED_ASPECTVIDEO_UNSUPPORTED_WIDTHWHITEPAPER_DOWNLOAD_CAMPAIGN_AD_FORM_MISMATCHCTV_VIDEO_UNSUPPORTED_BITRATE
messagestring

Error message, from LinkedIn's template for the code.

errorDetailTypestring

com.linkedin.common.error.BadRequest on validation errors.

errorDetailsobject

Validation details.

Show child attributes
inputErrorsobject[]

One element per failing input.

Show child attributes
codestring

Error code of this input.

descriptionstring

Message of this input.

inputobject
Show child attributes
inputPathobject
Show child attributes
fieldPathstring

Path of the field (/Campaign/dailyBudget/amount, /CampaignGroup/runSchedule/end).

valueobject

Value sent.

minValuestring

Minimum, on FIELD_VALUE_TOO_LOW.

conditionalInputErrorsobject[]

Cross-field errors, with relatedInputs.

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

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.