create_linkedin_conversion_rule
Create a LinkedIn conversion rule
Description
Create a LinkedIn CONVERSION RULE — the object LinkedIn attributes conversions to, and the prerequisite for send_linkedin_conversions. `type` is the behaviour being tracked (LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW…). THE RULE IS BORN ASSOCIATED WITH NOTHING: until you attach campaigns with associate_linkedin_conversion_campaigns it attributes nothing, which also makes it the safe place to send test events — LinkedIn has no test mode on the wire. Pass associateAllCampaigns:true to attach it to up to 200 ACTIVE campaigns instead; that spends nothing but it changes what those live campaigns optimise toward and what their reports count, so ask the user first. Attribution windows are 1, 7, 30 or 90 days (365 only for SUBMIT_APPLICATION, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD and LEAD). Creating a rule cannot spend money — it is a definition. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | LinkedIn ad account id shared with this profile; needed only when several are shared |
namerequired | string | shown in Campaign Manager and in every report |
typerequired | string | the conversion behaviour, e.g. LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW |
postClickAttributionWindowSize | number | 1, 7, 30 or 90 days (365 for the five long-window types). LinkedIn default 30. |
viewThroughAttributionWindowSize | number | same allowed values. LinkedIn default 7. |
attributionType | "LAST_TOUCH_BY_CAMPAIGN" | "LAST_TOUCH_BY_CONVERSION" | how conversions are credited across campaigns: last touch by campaign or by conversion |
valueType | "DYNAMIC" | "FIXED" | "NO_VALUE" | DYNAMIC (default) takes each event’s own value |
enabled | boolean | default true. A disabled rule REFUSES streamed events. |
associateAllCampaigns | boolean | attach to up to 200 ACTIVE campaigns now — ask the user first |
associateCampaignsByObjective | boolean | attach only to campaigns whose objective matches this conversion type |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_linkedin_conversion_rule.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_linkedin_conversion_rule","arguments":{"name":"<string>","type":"<string>"}}}
CLI
hermoso call create_linkedin_conversion_rule --json '{"name":"<string>","type":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
send_linkedin_conversionsSend conversions to LinkedIn (Conversions API)associate_linkedin_conversion_campaignsAttach campaigns to a LinkedIn conversion ruledelete_linkedin_ads_objectDelete a LinkedIn campaign group / campaign / adlist_linkedin_conversion_rulesList LinkedIn conversion rulesset_linkedin_ads_trackingLinkedIn ads dynamic UTM trackingupdate_linkedin_conversion_ruleUpdate or disable a LinkedIn conversion rulepreview_linkedin_adPreview a LinkedIn ad + its review statusupdate_linkedin_ads_creativeEdit a LinkedIn ad (copy, landing page, button, lead form)update_linkedin_lead_formEdit or archive a LinkedIn lead gen formupdate_meta_objectEdit a Meta campaign / ad set / ad