set_google_ads_targeting
Add Google Ads location & language targeting destructive
Description
ADD locations and languages to an existing Google Ads campaign. THIS ADDS; IT DOES NOT REPLACE — Google campaign criteria are a list, this call only ever creates entries, and there is no remove operation here. So a campaign already targeting the United States that you "change to Canada" ends up targeting BOTH and still spending in the US; the read-back names every pre-existing location and language it kept, and you MUST relay that rather than reporting the new total as the answer. Removing targeting is done in Google Ads (Campaign > Settings > Locations). Pass locations by NAME ("United States", "California", "Toronto") — they are resolved to Google's geo target ids for you; excludedLocations adds a NEGATIVE criterion (the reliable way to stop serving somewhere from here); languages takes ISO codes ("en","fr"). A campaign with NO location targeting runs WORLDWIDE, which is the most expensive default in Google Ads. Changing a LIVE campaign's targeting moves real spend immediately, so that needs confirm:true.
Parameters
| Parameter | Type | Description |
|---|---|---|
customerId | string | omit to use the brand’s selected default account |
campaignIdrequired | string | the campaign to target |
locations | string[] | location NAMES to target |
excludedLocations | string[] | location NAMES to exclude |
languages | string[] | ISO language codes, e.g. ["en","es"] |
countryCode | string | 2-letter hint to disambiguate a city name, e.g. CA for "London" |
confirm | boolean | REQUIRED true to change a LIVE (ENABLED) campaign |
dryRun | boolean | true = validate with Google and change nothing |
loginCustomerId | string | manager (MCC) account id when acting through a manager account; omit otherwise |
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_google_ads_targeting.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_google_ads_targeting","arguments":{"campaignId":"<string>"}}}
CLI
hermoso call set_google_ads_targeting --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
add_google_ads_keywordsAdd Google Ads keywordsset_google_ads_biddingSet a Google Ads bidding strategycreate_google_ads_adCreate a Google Ads adfind_google_ads_locationsLook up Google Ads locationscreate_google_ads_ad_groupAdd an ad group to a Google Ads campaignset_google_ads_budgetSet a Google Ads campaign budgetcreate_google_ads_campaignBuild a Google Ads campaign (paused)set_google_ads_statusEnable, pause or remove a Google Ads campaign / ad group / adgoogle_ads_change_historyWhat changed on a Google Ads account, and whenmanage_google_ads_budget_networksGoogle Ads waterfall priorities and network spend caps