SCALIX help

← All tools

lads_create_conversation_creative

LinkedIn Ads write high risk

Part of the Conversation Ads Agent.

What it does

Creates the SponsoredConversation CONTAINER only (POST /rest/conversationAds with parentAccount + headlineText). The message tree (sponsoredMessageContents), firstMessageContent, the SponsoredMessageOption buttons and the creative that wraps the conversation are NOT built by this tool yet (PRD FR-LI-006, scheduled for November), so the conversation ad is not runnable after this call. Two-phase (parity with Google, ADR-028/029): the first call (no preview_id) builds the request locally and returns a preview_id — nothing is sent to 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 create the conversation container, step 1 of a Conversation Ad. Scalix does not build the message tree, the options, lead-form nodes or the wrapping creative yet, so the ad cannot run after this call: build the rest in Campaign Manager. Draft the flow first with lads_script_conversation_ad, and plan the campaign with lads_plan_message_campaign.

Inputs

NameTypeRequiredDescription
ad_account_idstringyesNumeric sponsored account ID; strip urn prefix and dashes. Server-derived from bearer scope; the leadGenerationForm node's account must match this parentAccount.
headline_textstringnoConversation headline shown in inbox; defaults to the first line of the first message if absent.
preview_idstringnoOmit 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

Conversation Ads CAN be delivered to EU members since ~Oct 2024 on a consent basis (the old EU geo 400 block is GONE) - do NOT auto-block EU geo; instead declare the campaign NOT_POLITICAL, confirmed by the user against LinkedIn's EU statement, when EU members are targeted (EU TTPA; no political ads). The sender must be a real member or active page (no fake personas - INAPPROPRIATE_NAME), a functional opt-out / 'Not Interested' path must exist, and the ad must not continue after a member declines (EXCESSIVE_NEGATIVE_RESPONSE). Monitor unsubscribe/opt-out (>2-3% is a health flag). A lead-form node's account must match the conversation parentAccount.

Reminder

Do not geo-block EU members, but declare politicalIntent on EU-targeted campaigns; use a real sender and a working opt-out, create paused and test-send before activating; strict per-account isolation.

Errors

Error classMeansWhat to doRetry
TOKEN_REVOKEDAccess token expired/revoked; member must re-authorize.Refresh once and retry; else needs_reauth. Never log the token.yes
PERMISSION_DENIED403 - missing rw_ads / write role / page READ access / out-of-scope account.Confirm scope, roles and page access; do not retry until corrected.no
POLITICAL_INTENT_REQUIRED400 - EU members are targeted but the parent campaign has no politicalIntent declaration (EU TTPA). Note: this is NOT a geo block - EU delivery is permitted on a consent basis.Declare the campaign NOT_POLITICAL once the user confirms LinkedIn's EU statement (political ads cannot run on LinkedIn); do not retry until declared.no
CONVERSATION_TREE_INVALID4xx - >25 messages, >5 options/node, optionText not 1-35 chars, body >500 chars, cyclical reference, missing nextContent, or lead-form account mismatch.Fix the named tree-validation violation (surface the exact check) and rebuild; do not guess.no
INVALID_SENDERRejection INAPPROPRIATE_NAME - the sender is a fake/invalid persona.Use a real member or valid company page as sender; re-preview.no
INMAIL_CONTENT_INVALID400 SINMAIL_INVALID_INMAIL_CONTENT - the referenced adInMailContent does not exist or firstMessageContent was not set.Ensure the conversation has firstMessageContent and a valid AdInMailContent before referencing it.no
RESOURCE_EXHAUSTED429 daily app/member limit.Honor X-RateLimit-Reset; backoff 5/10/20s cap 60s; retry once.yes
PLATFORM_ERROR500/503 transient.Retry with backoff; report if persistent; do not silently drop.yes

Edge cases

  • EU members are NO LONGER auto-blocked (block lifted ~Oct 2024) - do not reject EU geo; the live requirement is a politicalIntent declaration on EU-targeted campaigns.
  • You cannot set firstMessageContent on initial conversation create - it must be a subsequent PARTIAL_UPDATE.
  • Max 25 message nodes per conversation; each node 1-5 options; cyclical references are rejected.
  • A leadGenerationForm node must be OPTION_PROVIDING with at least one LEAD_GENERATION_THANK_YOU option, and its form account must equal the conversation parentAccount.
  • LEAD_GENERATION_THANK_YOU optionText is overridden by the ad form's thank-you message regardless of input.
  • You cannot pause/transition an in-review creative to PAUSED (returns 400) - wait for review.
  • From version 202607 a 'Not Interested' CTA is auto-added on intro messages and is not exposed in the API - verify via test send.
  • Multi-step flow can orphan a conversation/messages if a later step fails - surface created URNs for cleanup.
  • Expired token -> refresh and retry once.