API Reference
Create campaigns
/rest/adAccounts/{id}/adCampaignshttps://linkedin-ads.mimicr.dev · provider: https://api.linkedin.comCreates a campaign (CREATE) or several (BATCH_CREATE). Needs CAMPAIGN_MANAGER or higher and scope rw_ads.
Required: account, campaignGroup, name, type, costType, unitCost, dailyBudget or totalBudget, locale, targetingCriteria and offsiteDeliveryEnabled. The objective, format, cost type and optimization target must form a valid configuration (INVALID_CAMPAIGN_CONFIGURATION). Budgets and bids have minimums per currency: BRL 50.00 daily, 500.00 total and a CPC/CPM floor of 10.00; USD 10.00, 100.00 and 2.00.
DRAFT postpones the targeting, conversion and audience-size checks until activation. A name with [falha-simulada] answers 500 without creating anything.
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 (numeric), the first {id} of the path.
"521119150"Body
application/jsonCampaign 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.
Responses
200BATCH_CREATE: one result per element.
One per element, in order; failed elements carry the error and the others are still created.
Show child attributes
201, or the error status of that element.
Id of the new entity.
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
HTTP status.
10007 for validation errors, 100 for permission errors, 0 otherwise.
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_BITRATEError message, from LinkedIn's template for the code.
com.linkedin.common.error.BadRequest on validation errors.
Validation details.
Show child attributes
One element per failing input.
Show child attributes
Error code of this input.
Message of this input.
Show child attributes
Show child attributes
Path of the field (/Campaign/dailyBudget/amount, /CampaignGroup/runSchedule/end).
Value sent.
Minimum, on FIELD_VALUE_TOO_LOW.
Cross-field errors, with relatedInputs.
ErrorOld
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.
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.