hermosodocs

create_linkedin_conversion_rule

Create a LinkedIn conversion rule

Area: LINKEDIN GAP SWEEP PHASE 1 · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
adAccountIdstringLinkedIn ad account id shared with this profile; needed only when several are shared
namerequiredstringshown in Campaign Manager and in every report
typerequiredstringthe conversion behaviour, e.g. LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW
postClickAttributionWindowSizenumber1, 7, 30 or 90 days (365 for the five long-window types). LinkedIn default 30.
viewThroughAttributionWindowSizenumbersame 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
enabledbooleandefault true. A disabled rule REFUSES streamed events.
associateAllCampaignsbooleanattach to up to 200 ACTIVE campaigns now — ask the user first
associateCampaignsByObjectivebooleanattach 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.

All 759 Ad campaign management tools · tools.json