lads_create_image_creative
LinkedIn Ads write high risk
Part of the Sponsored Content Agent.
What it does
Create a Single Image Sponsored Content creative (campaignFormat STANDARD_UPDATE) on the LinkedIn Creatives API. Sponsors an existing organization image post by reference (urn:li:share / urn:li:ugcPost), or creates the post inline in one call via action=createInline with an uploaded image URN. Preview->approve->commit: LinkedIn has NO validate-only flag, so ALWAYS create with intendedStatus=DRAFT, return a plain-English summary of every field (headline, intro, image, landing page, CTA) plus the editorial/character-limit check, wait for explicit user approval, then activate via lads_update_creative (intendedStatus=ACTIVE). On create the authoritative creative URN is returned in the x-restli-id response header (201 Created); review is null in DRAFT and starts (status PENDING) only on activation. When later reporting on this creative use the Single Image metric LP CTR = landingPageClicks/impressions (not raw clicks/impressions CTR); benchmark LP CTR ~0.4-0.6% (third-party, directional). Cost metrics (costInLocalCurrency/costInUsd) come back from adAnalytics as strings and money is whole-currency there (LinkedIn does not use micros). Inputs: campaign URN, image post reference OR inline post (author org URN + commentary + media image URN + landingPage), creative name, optional leadgenCallToAction when the parent campaign objective is LEAD_GENERATION. Two-phase (parity with Google, ADR-028/029): the first call (no preview_id) reads the campaign from LinkedIn in this ad account (a nonexistent one is refused), builds the request locally and returns a preview_id — nothing is changed on LinkedIn; re-call with that preview_id and identical arguments to COMMIT (single-use, 30-min; a changed/forged/replayed token fails closed).
When to use it
Use to launch a single-image sponsored ad, promoting an existing company post or building one inline. Create it in DRAFT, show the exact headline, intro, image, landing page and CTA with the editorial and character-limit check, and get explicit approval before activating; re-preview if any field changes. First call lads_plan_sponsored_content_campaign for the blueprint, operation order and policy pre-checks.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
ad_account_id | string | yes | Numeric sponsored account ID for the path; strip the urn:li:sponsoredAccount: prefix and any dashes. Server-derived from the bearer's tenant scope - reject any account outside the bearer's authorized set (do not accept a caller-supplied account that is out of scope). |
campaign | string | yes | Parent campaign URN urn:li:sponsoredCampaign:{id}. Must be a STANDARD_UPDATE-compatible campaign; the first creative locks the campaign ad format (all creatives in a campaign must share one type). Percent-encode if used in a path. |
content_reference | string | no | URN of an existing post to sponsor: urn:li:share:{id} or urn:li:ugcPost:{id}. Mutually exclusive with inline_content. Post visibility must be PUBLIC and the post must be a non-reshare with exactly one image. |
inline_content | object | no | Inline post for action=createInline: {author: urn:li:organization:{id}, commentary, visibility:PUBLIC, lifecycleState:PUBLISHED, adContext:{dscAdAccount, dscStatus:ACTIVE}, content:{media:{id: urn:li:image:{id}, title, altText}}, contentLandingPage, contentCallToActionLabel}. Reduces calls by skipping a separate Posts API publish; the image URN must be a fully uploaded/processed Images API asset. Pass the post itself or {post:{...}}: the tool sends POST .../creatives?action=createInline with {creative:{inlineContent:{post}, campaign, intendedStatus}}, sets adContext.dscAdAccount to this ad account (a post naming another account is refused) and defaults visibility PUBLIC and lifecycleState PUBLISHED. |
intended_status | string | no | Enum ACTIVE|PAUSED|DRAFT|ARCHIVED. Enum-normalize to upper-case. Default and required-by-policy DRAFT on create; never create ACTIVE. Effective status is min(creative, parent) - a PAUSED campaign overrides an ACTIVE creative. |
name | string | no | Creative name (202410+ field; preferred over legacy dscName). Used only for reference in Campaign Manager; not member-visible. |
leadgen_call_to_action | object | no | {destination: urn:li:adForm:{id}, label: enum LEARN_MORE|SIGN_UP|DOWNLOAD|REGISTER|...}. Required ONLY if the parent campaign objective is LEAD_GENERATION (else CTA_REQUIRED_FOR_LEAD_GEN). destination is immutable once the creative leaves DRAFT; label stays editable. |
preview_id | string | no | Omit it to preview: nothing is applied, and the call returns a preview_id bound to this exact request. Pass it only after the user approves that preview in a later message, with the same arguments (leave out validate_only, and add any confirmation flag the preview names). Single-use, expires in 30 minutes; changed arguments need a fresh preview. |
Safeguards
A change in two steps. The first call previews and changes nothing; Claude shows you the preview and applies it only after you approve, within 30 minutes and with the same arguments. Every applied change goes to the audit log. How changes are approved.
Policy
Must meet LinkedIn editorial standards: standard spelling/grammar/capitalization (NON_STANDARD_TEXT, EXCESSIVE_CAPITALIZATION), one link plus at most one email/phone (EXCESSIVE_CONTACT_INFORMATION), professional non-meme imagery (INAPPROPRIATE_LANGUAGE_OR_IMAGE), display URL must match landing page (INCONSISTENT_DISPLAY_AND_LANDING_PAGE_URLS), and the destination must support every claim (MISLEADING_CLAIMS). The image post must reference exactly one image (UGC_EXCEEDING_IMAGE_LIMIT) and be PUBLIC and non-reshare (UGC_INVALID_VISIBILITY_SETTING, UGC_RESHARE_CANNOT_BE_SPONSORED). AI-generated creative must meet the same editorial bar, be disclosed where required, and must not deepfake real people.
Reminder
Create paused and activate only the approved creative; never sponsor a post outside the authorized account, and don't retain member data from referenced posts.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
TOKEN_REVOKED | The LinkedIn access token is expired or revoked; the member must re-authorize (the refresh token TTL does not reset on refresh and caps at ~365 days). | Refresh once via the stored refresh token and retry; if refresh fails, trigger needs_reauth and surface a re-connect prompt. Never log the token. | yes |
PERMISSION_DENIED | 403 - bearer lacks rw_ads, or the member lacks a writing ad-account role (ACCOUNT_MANAGER/CAMPAIGN_MANAGER/CREATIVE_MANAGER), or the account is outside the bearer's authorized scope. | Do not retry; confirm the account is in scope and the member holds a write role, then re-attempt. | no |
INVALID_ARGUMENT | 400 - surface the platform message verbatim (e.g. UGC_EXCEEDING_IMAGE_LIMIT, UGC_INVALID_VISIBILITY_SETTING, REFERENCE_MEDIA_CATEGORY_AND_CAMPAIGN_FORMAT_MISMATCH, FIELD_VALUE_TOO_LONG, INVALID_HREF, INVALID_VALUE_NOT_EXIST). | Relay LinkedIn's exact validation error; fix the named field; do not guess or auto-rewrite. | no |
CAMPAIGN_FORMAT_MISMATCH | 400 CAMPAIGN_EXCEEDING_CREATIVE_TYPE_LIMIT / REFERENCE_MEDIA_CATEGORY_AND_CAMPAIGN_FORMAT_MISMATCH - the creative type does not match the campaign's locked ad format. | Use a campaign whose format matches single-image, or a fresh campaign with no format set; do not retry against the same campaign. | no |
LEADGEN_CTA_REQUIRED | 400 CTA_REQUIRED_FOR_LEAD_GEN - parent campaign objective is LEAD_GENERATION but no leadgenCallToAction was supplied. | Provide leadgenCallToAction.destination (adForm URN) and label, then retry. | no |
RESOURCE_EXHAUSTED | 429 - application or member daily rate limit reached (email alert fires at 75% of quota); X-RateLimit-Reset may be present. | Honor X-RateLimit-Reset; exponential backoff 5/10/20s capped at 60s before one retry. | yes |
PLATFORM_ERROR | 500/503 (e.g. FAIL_TO_RETRIEVE_UPDATE) - transient LinkedIn error. | Retry with backoff; if persistent, report the upstream failure clearly and do not silently drop the request. | yes |
Edge cases
- Account at the 15,000-creative cap or campaign at the 100-creative cap -> 400; tell the user to archive/delete creatives first.
- Reusing the same post in multiple LEAD_GENERATION creatives is disallowed - the asset must be uploaded again per creative.
- Reshared or non-public posts cannot be sponsored (UGC_RESHARE_CANNOT_BE_SPONSORED / UGC_INVALID_VISIBILITY_SETTING).
- createInline requires a valid fully-uploaded image URN (Images API) - an unprocessed/invalid image URN returns INVALID_VALUE_NOT_EXIST.
- Headline hard cap 70 chars with no truncation rescue; intro 600 (truncates ~150 desktop/~100 mobile) - front-load the message.
- WEBSITE_VISIT/WEBSITE_CONVERSION objective requires a landing page (MISSING_URL_FOR_WEBSITE_OBJECTIVE).
- Expired token -> refresh and retry exactly once before failing.
- On create the response body may omit name/account; the authoritative new creative URN is in the x-restli-id header - read it there, not the body.
- Empty/no-op preview is not an error - if the user has not approved, do not call the API at all.