update_linkedin_ads_campaign
Change a LinkedIn campaign’s targeting or political declaration destructive
Description
Change an existing LinkedIn campaign’s targeting (sent whole), its political-advertising declaration, and/or its name. EU locations need the advertiser’s own declaration: ask, show LinkedIn’s wording (“I confirm this is not political advertising.”), pass politicalIntent only on their answer. Targeting on a LIVE campaign needs confirm:true. Read back from LinkedIn.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | LinkedIn ad account id |
campaignIdrequired | string | campaign id |
name | string | |
locations | string[] | geo URNs or ids, the new audience |
include | object | facets ANDed onto locations |
exclude | object | |
excludeLocations | string[] | |
targetingCriteria | object | LinkedIn’s raw targeting object |
politicalIntent | "POLITICAL" | "NOT_POLITICAL" | "NOT_DECLARED" | the user’s own declaration |
confirm | boolean | true to retarget a LIVE campaign |
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/update_linkedin_ads_campaign.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_linkedin_ads_campaign","arguments":{"campaignId":"<string>"}}}
CLI
hermoso call update_linkedin_ads_campaign --json '{"campaignId":"<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
create_linkedin_ads_campaignCreate a LinkedIn campaign (draft)set_linkedin_ads_budgetSet a LinkedIn campaign budgetcreate_linkedin_ads_campaign_groupCreate a LinkedIn campaign group (draft)set_linkedin_ads_statusActivate or pause a LinkedIn campaign group / campaign / adlinkedin_boost_analyticsLinkedIn boost resultssearch_linkedin_ads_targetingFind LinkedIn targeting URNsmanage_linkedin_boost_audienceCreate, edit or delete a saved LinkedIn boost audiencecreate_linkedin_ads_creativeCreate a LinkedIn ad (creative, draft)list_linkedin_boost_audiencesSaved LinkedIn boost audiencesupdate_linkedin_boostChange a LinkedIn boost’s audience