lads_create_spotlight_creative
LinkedIn Ads write high risk
Part of the Dynamic Ads Agent.
What it does
Create a Dynamic Spotlight Ad creative (creativeType SPOTLIGHT; campaignType DYNAMIC, campaignFormat SPOTLIGHT) on the LinkedIn Creatives API. Spotlight content is inline (content.spotlight) and personalizes to the viewing member (optional profile photo): headline + callToAction (button text) + landingPage are required; description, logo, organizationName, backgroundImage and showMemberProfilePhoto are optional. A backgroundImage suppresses both the description and the member profile photo. Preview->approve->commit: LinkedIn has no validate-only flag, so ALWAYS create intendedStatus=DRAFT, summarize headline/CTA/landing page/branding and (for recruitment) the anti-discrimination check, get explicit approval, then activate via lads_update_creative. Returns creative URN in x-restli-id (201). Risk is high when used for employment/recruitment (JOB_APPLICANT/TALENT_LEAD) because of anti-discrimination obligations. Inputs: campaign URN, headline, callToAction, landingPage, optional description/logo/organizationName/backgroundImage/showMemberProfilePhoto, name. 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 for personalized spotlight ads that drive to a landing page (product, event, recruitment). Build in DRAFT, confirm whether to show the member photo vs a backgroundImage (they conflict), and get explicit approval before activating. For employment/recruitment, surface and pass the anti-discrimination check first. First call lads_plan_dynamic_ad_campaign for the blueprint, operation order 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 DYNAMIC/SPOTLIGHT campaign URN. Dynamic ads must have ad format set at creation (DYNAMIC_ADS_MISSING_AD_FORMAT otherwise); CPC campaigns allow only dynamic creatives (CPC_CAMPAIGN_INVALID_AD_TYPE). |
headline | string | yes | Main message (not used for mobile spotlight placements). Required (EMPTY_FIELD otherwise). |
call_to_action | string | yes | Button text (e.g. 'Join Us Now'). Required. |
landing_page | string | yes | Destination URL on click. Required; absolute http/https. A valid pipeline-builder URL is required for some objectives (SPOTLIGHT_NOT_ASSOCIATED_WITH_VALID_PIPELINE_BUILDER_URL). |
description | string | no | Extra message; not allowed when a backgroundImage is set (FIELD_CONDITIONALLY_NOT_ALLOWED - mutually exclusive with backgroundImage). |
logo | string | no | Company logo image URN urn:li:image:{id}; defaults to the company-page logo if omitted. Set to null on update to revert to the page logo. |
organization_name | string | no | Company name override; defaults to the company-page name if omitted. Set to null on update to revert. |
background_image | string | no | Custom background image URN; if set, no description and no member profile photo are shown. |
show_member_profile_photo | boolean | no | Whether to show the viewing member's profile photo. Defaults true; forced off when backgroundImage is set. |
intended_status | string | no | Enum ACTIVE|PAUSED|DRAFT|ARCHIVED; enum-normalize upper-case; default/required DRAFT on create. |
name | string | no | Creative name (202410+); reference only. |
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
Spotlight is a Dynamic Ad personalized with the member's profile photo - it must obey editorial standards and may not imply false affiliation/endorsement (IMPLIED_AFFILIATION). If used for employment/recruitment (JOB_APPLICANT/TALENT_LEAD), targeting must comply with anti-discrimination rules (no protected-attribute targeting/exclusion; age targeting OFF for recruitment) and copy must be gender-neutral and non-age-coded (DISCRIMINATION rejection, applicable from version 202504+). CPC campaigns allow only dynamic creatives (CPC_CAMPAIGN_INVALID_AD_TYPE). Spotlight requires a valid landing/pipeline-builder URL (SPOTLIGHT_NOT_ASSOCIATED_WITH_VALID_PIPELINE_BUILDER_URL).
Reminder
Create paused, confirm headline/CTA/landing/branding, then activate; for recruitment spotlights enforce anti-discrimination (no protected attributes, age off); strict per-account isolation.
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 / out-of-scope account, or UNAUTHORIZED_ACCESS_TO_CHANGE_THE_REVIEW. | Confirm scope and roles; do not retry until corrected. | no |
DYNAMIC_FORMAT_INVALID | 400 DYNAMIC_ADS_MISSING_AD_FORMAT / CPC_CAMPAIGN_INVALID_AD_TYPE / INVALID_PARENT_CAMPAIGN_TYPE - the campaign is not a DYNAMIC SPOTLIGHT campaign. | Create/select a DYNAMIC campaign with SPOTLIGHT format; do not retry the same campaign. | no |
INVALID_ARGUMENT | 400 EMPTY_FIELD (missing headline/callToAction/landingPage), FIELD_CONDITIONALLY_NOT_ALLOWED (description with backgroundImage), INVALID_HREF, SPOTLIGHT_NOT_ASSOCIATED_WITH_VALID_PIPELINE_BUILDER_URL. | Relay platform message; supply required fields / resolve the description-vs-background conflict; do not guess. | no |
DISCRIMINATION_BLOCKED | Recruitment/employment spotlight with protected-attribute or age-coded targeting/copy (DISCRIMINATION rejection, 202504+). | Remove protected-attribute targeting, disable age targeting for recruitment, neutralize age-coded/gendered copy; re-preview. | 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. | Retry with backoff; report if persistent. | yes |
Edge cases
- backgroundImage and description are mutually exclusive; backgroundImage also forces showMemberProfilePhoto off.
- Omitting logo/organizationName falls back to the company-page values - they are always present on reads even if not sent on create.
- Setting logo or organizationName to null on update reverts to the company-page default.
- Headline is ignored for mobile spotlight placements.
- Account/campaign creative caps (15,000 / 100) apply -> 400 when exceeded.
- Expired token -> refresh and retry once.
- TALENT_LEAD/JOB_APPLICANT objective triggers the recruitment anti-discrimination gate - run it before activation.