hermosodocs

set_google_ads_targeting

Add Google Ads location & language targeting destructive

Area: GOOGLE ADS CHANGE HISTORY · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
customerIdstringomit to use the brand’s selected default account
campaignIdrequiredstringthe campaign to target
locationsstring[]location NAMES to target
excludedLocationsstring[]location NAMES to exclude
languagesstring[]ISO language codes, e.g. ["en","es"]
countryCodestring2-letter hint to disambiguate a city name, e.g. CA for "London"
confirmbooleanREQUIRED true to change a LIVE (ENABLED) campaign
dryRunbooleantrue = validate with Google and change nothing
loginCustomerIdstringmanager (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.

All 759 Ad campaign management tools · tools.json