lads_plan_message_campaign
LinkedIn Ads skill low risk
Part of the Conversation Ads Agent.
What it does
Campaign-planning skill for LinkedIn Conversation Ads (multi-CTA branching inbox messages) that returns a suspension-safe blueprint BEFORE anything is written. It is explicit about scope: it plans Conversation Ads via lads_create_conversation_creative; classic single-CTA Message Ads (SPONSORED_INMAIL) are NOT in the Scalix toolset, so it says so rather than substituting. Encodes the sender rule (a real member who accepted the sender request, or the company Page once LinkedIn support has enabled it as a sender; no fake personas) and the deliverability recommendations, which are not LinkedIn rules (a professional headshot, complete profile and 500+ connections; a C-suite sender roughly doubles open rates), the cadence reality (LinkedIn caps sponsored-messaging frequency per member — historically ~1/30 days, now a dynamic ~7-18 day window, so the plan does NOT hard-code a number — and auto-renders a 'Not Interested' CTA that suppresses future delivery, meaning you get one shot per window), and the tree design (initial + each message <=500 chars, up to 5 CTAs per message (on the intro, LinkedIn's 'Not Interested' is one of them), max 3-4 levels deep, every path ending in a conversion). The script is drafted with the lads_script_conversation_ad skill. Budget is per-send (CPS): daily sends <= audience size / the cadence window, daily ceiling = sends x the account's REAL CPS. The ordered apply_sequence: lads_policy_guardrail -> lads_get_audience_count -> lads_script_conversation_ad -> lads_create_campaign_group -> lads_create_campaign -> lads_create_conversation_creative. Policy pre-checks: EU targeting requires the politicalIntent attestation AND that members opted into sponsored messaging; honor the opt-out; never fabricate the sender or offer; member-data purge windows. Planning only — it writes NOTHING; every create in the sequence lands PAUSED behind its own preview->approve gate. Output: {success:true, data:{task, platform, campaign_type, objective, inputs, structure, budget, bid_strategy, apply_sequence:[{step,tool,purpose,gotchas}], policy_prechecks, guardrails, verify_with, apply_with}, warnings}.
When to use it
FIRST call for any new LinkedIn messaging campaign — before lads_create_conversation_creative or lads_create_campaign — whenever the user wants Conversation Ads or 'InMail'-style outreach. It sets the sender requirements, the per-send budget math, the frequency-cap reality, and (for EU) the politicalIntent + opt-in pre-checks; it also flags that classic Message Ads are not in the toolset.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
ad_account_id | string | yes | LinkedIn sponsored-account id (numeric). |
sender_urn | string | no | The sender: urn:li:person:{id} of a member who accepted the sender request, or urn:li:organization:{id} once LinkedIn support has enabled the company Page as a sender. 500+ connections and a complete profile are recommended, not required. Without it the plan warns that the creative step needs a sender. |
offer | string | no | The offer/ask driving the conversation (event invite, demo, gated content). |
daily_budget | number | no | Daily budget in account currency; ceiling = daily sends x the account's real CPS. |
audience | array<object> | no | Targeting facets for sizing and the daily-send cap. |
target_includes_eu | boolean | no | True when any EU member is targeted — forces the politicalIntent declaration and the sponsored-messaging opt-in check. |
Safeguards
Policy
Planning only — writes NOTHING. Every apply-step is preview (DRAFT) -> explicit approval -> execute -> verify, and every entity creates PAUSED. Hard blocks it enforces: no political ads (LinkedIn bans them globally since 2018 — the politicalIntent enum on EU-targeted campaigns is a NOT-political attestation, never an allowance); no discriminatory targeting or exclusion for employment/housing/education/credit (self-certification + protected-attribute rules); no member-data misuse — profile data purged within 24h, social activity within 48h, never used for enrichment or cross-account audiences (a violation can revoke API access for every client at once); never fabricate a sender, an offer, claims, or URLs.
Reminder
The blueprint is not an approval: each create tool still needs its own preview (DRAFT) and explicit user approval, and the campaign objective is IMMUTABLE after creation — confirm the objective->format fit before creating.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
INVALID_AD_ACCOUNT | ad_account_id is malformed or not accessible under the connected token. | Use the numeric sponsored-account id (server maps it to urn:li:sponsoredAccount:{id}); confirm the account is connected. | no |
AUDIENCE_TOO_SMALL | The targetable audience is below the 300-member serving floor. | Broaden facets (OR more titles, widen company size/industry) until over 300 — ideally the ~50K practical floor; re-check with lads_get_audience_count. | no |
OBJECTIVE_FORMAT_MISMATCH | The chosen format is not valid for the campaign objective. | Pick a format from the objective's supported set (objective is immutable after creation) before creating the campaign. | no |
MISSING_POLITICAL_INTENT | EU targeting without a politicalIntent declaration. | Set politicalIntent (NOT_POLITICAL with the exact consent string) for EU-targeted campaigns; declaring POLITICAL is rejected (global ban). | no |
DISCRIMINATORY_TARGETING | Employment/housing/education/credit targeting without self-certification, or a protected-attribute include/exclude. | Self-certify and remove any protected-attribute targeting; age is unavailable for job objectives; Groups can be included, never excluded. | no |
CONVERSION_RULE_NOT_ASSIGNED | A conversion rule exists but was not assigned to the campaign. | Assign it explicitly — LinkedIn does NOT auto-assign conversions, so an unassigned rule means the campaign reports zero conversions. | yes |
POLICY_DOC_UNAVAILABLE | lads_policy_guardrail (apply-sequence step 1) could not be loaded. | Do NOT proceed to any write without the suspension-safety reference; report and stop. | no |
INVALID_SENDER | sender_urn is missing, or the sender is not eligible: a member who has not accepted the sender request, or a company Page LinkedIn support has not enabled as a sender. | Choose a member who accepted the sender request, or ask LinkedIn support to enable the company Page as a sender; never a fake persona. | no |
Edge cases
- Classic Message Ads (SPONSORED_INMAIL) are NOT in the toolset — the plan uses Conversation Ads; flag the gap if the client needs single-message InMail.
- Sender: a real member who accepted the sender request, or the company Page once LinkedIn support has enabled it as a sender. A headshot, a complete profile and 500+ connections are recommendations, not LinkedIn rules; C-suite senders roughly double open rates.
- Frequency cap is DYNAMIC (~7-18 days, was ~1/30) — do not hard-code a number; one shot per window.
- 'Not Interested' CTA is auto-rendered (since 2026-06) and suppresses future delivery — the offer must earn the click.
- EU: members must have opted into sponsored messaging (re-enabled mid-Oct 2024) AND the campaign needs politicalIntent.
- Trees: <=500 chars/message, <=5 CTAs (4 on the intro, where LinkedIn adds 'Not Interested'), <=3-4 levels; every path ends in a conversion.
- Budget is per-send (CPS): daily sends <= audience size / cadence window — read the real CPS, never quote a fixed rate.
- ENTERPRISE default campaign group must not be mutated.