set_linkedin_ads_tracking
LinkedIn ads dynamic UTM tracking destructive
Description
Dynamic UTM tracking for LinkedIn ads: parameters LinkedIn appends to every ad’s landing page on a campaign (or, level:"account", across the whole ad account), filled in per click. standard:true sets utm_source=linkedin, utm_medium=paid_social, utm_campaign={campaign name}, utm_content={creative id}. Or pass dynamic {key: ACCOUNT_ID | ACCOUNT_NAME | CAMPAIGN_GROUP_ID | CAMPAIGN_GROUP_NAME | CAMPAIGN_ID | CAMPAIGN_NAME | CREATIVE_ID | CREATIVE_NAME} and/or custom {key: fixed value}. A new set REPLACES the previous one; clear:true removes it; call with no parameters to read what is set. Ads do not go back through review. Read back from LinkedIn. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | LinkedIn ad account id shared with this profile; needed only when several are shared |
level | "campaign" | "account" | default campaign when campaignId is given |
campaignId | string | campaign to set tracking on; omit for account-level tracking with level account |
standard | boolean | true sets the standard UTM set: source linkedin, medium paid_social, campaign and content filled per click |
dynamic | object | UTM key mapped to a LinkedIn macro, e.g. {utm_campaign: CAMPAIGN_NAME}; a new set replaces the old |
custom | object | UTM key mapped to a fixed value, e.g. {utm_source: newsletter}; a new set replaces the old |
clear | boolean | true removes all dynamic tracking parameters |
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/set_linkedin_ads_tracking.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_linkedin_ads_tracking","arguments":{}}}
CLI
hermoso call set_linkedin_ads_tracking --json '{}'
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
preview_linkedin_adPreview a LinkedIn ad + its review statusdelete_linkedin_ads_objectDelete a LinkedIn campaign group / campaign / adupdate_linkedin_ads_creativeEdit a LinkedIn ad (copy, landing page, button, lead form)create_linkedin_conversion_ruleCreate a LinkedIn conversion ruleupdate_linkedin_lead_formEdit or archive a LinkedIn lead gen formlist_linkedin_conversion_rulesList LinkedIn conversion rulescreate_linkedin_lead_formCreate a LinkedIn lead gen formupdate_linkedin_conversion_ruleUpdate or disable a LinkedIn conversion ruleassociate_linkedin_conversion_campaignsAttach campaigns to a LinkedIn conversion rulesend_linkedin_conversionsSend conversions to LinkedIn (Conversions API)