lads_create_video_creative
LinkedIn Ads write high risk
Part of the Sponsored Content Agent.
What it does
Create a Single Video Sponsored Content creative (campaignFormat SINGLE_VIDEO) on the LinkedIn Creatives API. Sponsors a video post by reference (urn:li:ugcPost wrapping a urn:li:video) or, preferred, creates the sponsored video post inline in one call via action=createInline with the uploaded video URN in inlineContent.post.content.media. Preview->approve->commit: LinkedIn has no validate-only flag, so ALWAYS create intendedStatus=DRAFT, summarize the video title/commentary/landing page + the file-spec and editorial check, get explicit approval, then activate via lads_update_creative. Returns creative URN in x-restli-id (201). Video specs: MP4, 3s-30min, 75KB-500MB, within LinkedIn width/height/aspect/bitrate bounds. Report later with view rate, 25/50/75/100% quartile completions, CPV and videoWatchTime (202601+), not LP CTR; cost fields from adAnalytics are strings. Inputs: campaign URN, video post reference OR inline post (author org, commentary, media video URN + title, landingPage/CTA), name, optional leadgenCallToAction when 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 when the user wants a video ad. Prefer createInline with the uploaded video URN. Build in DRAFT, show title/commentary/landing page and confirm the file meets MP4/length/size/dimension specs, get explicit approval, then activate. Re-preview on any change. First call lads_plan_sponsored_content_campaign for the campaign blueprint, operation ordering, and policy pre-checks.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
ad_account_id | string | yes | Numeric sponsored account ID; strip urn prefix and dashes. Server-derived from bearer scope; reject out-of-scope accounts. |
campaign | string | yes | Parent campaign URN urn:li:sponsoredCampaign:{id}; video campaigns must have format SINGLE_VIDEO set at creation. Percent-encode in paths. |
content_reference | string | no | Existing video post URN urn:li:ugcPost:{id} (UGC relation referencing a VIDEO). Mutually exclusive with inline_content; must be shareable and the reference must be the UGC post, not the raw urn:li:video. |
inline_content | object | no | createInline post: {author: urn:li:organization:{id}, commentary, visibility:PUBLIC, lifecycleState:PUBLISHED, adContext:{dscAdAccount,dscStatus:ACTIVE}, content:{media:{id: urn:li:video:{id}, title}}, contentLandingPage, contentCallToActionLabel}. Video URN must be a fully uploaded 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 upper-case; default/required DRAFT on create. Effective status is min(creative, parent). |
name | string | no | Creative name (202410+); reference only. |
leadgen_call_to_action | object | no | Required if campaign objective is LEAD_GENERATION: {destination: urn:li:adForm:{id}, label}. destination immutable post-DRAFT; label 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
Video creatives must reference a VIDEO via a UGC relation (rejections SPONSORED_VIDEO_NON_UGC_REFERENCE, SPONSORED_VIDEO_NON_VIDEO_REFERENCE) and must be shareable (SPONSORED_VIDEO_NON_SHAREABLE_CONTENT). The file must be MP4, length 3s-30min (VIDEO_LENGTH_TOO_SHORT/VIDEO_LENGTH_TOO_LONG) and within width/height/aspect/bitrate bounds (VIDEO_UNSUPPORTED_WIDTH/VIDEO_INVALID_HEIGHT/VIDEO_UNSUPPORTED_ASPECT, CTV_VIDEO_UNSUPPORTED_BITRATE on 202408+). AI-generated video must be disclosed and must not deepfake real people; all editorial standards (NON_STANDARD_TEXT, INAPPROPRIATE_LANGUAGE_OR_IMAGE, MISLEADING_CLAIMS) apply.
Reminder
Create paused, confirm the previewed video creative, then activate; report quartile completions/view rate not LP CTR; strict per-account isolation - never sponsor outside the bearer's account.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
TOKEN_REVOKED | Access token expired/revoked; member must re-authorize. | Refresh once and retry; else needs_reauth. Never log the token. | yes |
PERMISSION_DENIED | 403 - missing rw_ads / write role / org posting role / out-of-scope account. | Confirm scope and roles; do not retry until corrected. | no |
VIDEO_SPEC_INVALID | 400 VIDEO_LENGTH_TOO_SHORT/VIDEO_LENGTH_TOO_LONG, VIDEO_UNSUPPORTED_WIDTH, VIDEO_INVALID_HEIGHT, VIDEO_UNSUPPORTED_ASPECT, CTV_VIDEO_UNSUPPORTED_BITRATE - the video fails LinkedIn media specs. | Surface the exact spec error; re-encode to MP4 within 3s-30min, 75KB-500MB and supported dimensions/bitrate, then re-upload. | no |
INVALID_ARGUMENT | 400 SPONSORED_VIDEO_NON_VIDEO_REFERENCE / SPONSORED_VIDEO_NON_UGC_REFERENCE / SPONSORED_VIDEO_NON_SHAREABLE_CONTENT / INVALID_VALUE_NOT_EXIST / REFERENCE_MEDIA_CATEGORY_AND_CAMPAIGN_FORMAT_MISMATCH. | Relay platform message; fix the reference (use the UGC post wrapping the video); do not guess. | no |
PROCESSING_NOT_READY | Video still processing or PROCESSING_FAILED in servingHoldReasons; the creative cannot serve yet. | If PROCESSING, poll/retry after the asset finishes; if PROCESSING_FAILED, re-upload the video (that DRAFT/failed creative is also eligible for hard delete). | yes |
LEADGEN_CTA_REQUIRED | 400 CTA_REQUIRED_FOR_LEAD_GEN - objective is LEAD_GENERATION but no leadgenCallToAction supplied. | Provide leadgenCallToAction.destination and label, then retry. | no |
RESOURCE_EXHAUSTED | 429 daily app/member limit. | Honor X-RateLimit-Reset; backoff 5/10/20s cap 60s; retry once. | yes |
PLATFORM_ERROR | 500/503 transient (FAIL_TO_RETRIEVE_UPDATE). | Retry with backoff; report if persistent; do not silently drop. | yes |
Edge cases
- Newly uploaded video may not be processed yet - the creative shows servingHoldReasons PROCESSING until ready; do not treat as serving.
- PROCESSING_FAILED video-ad creatives are eligible for hard DELETE even when not in DRAFT.
- videoWatchTime metric is only available from version 202601+.
- LEAD_GENERATION objective requires leadgenCallToAction (CTA_REQUIRED_FOR_LEAD_GEN).
- Account/campaign creative caps (15,000 / 100) apply -> 400 when exceeded.
- Expired token -> refresh and retry once.
- The reference must be the UGC post wrapping the video, not the raw urn:li:video.
- Two-step (separate post then creative) can orphan a post if the creative step fails - surface the orphan URN; prefer createInline.