# Hermoso: set_google_ads_targeting · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/set_google_ads_targeting/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / set_google_ads_targeting

# `set_google_ads_targeting`

Add Google Ads location & language targeting destructive

Area: GOOGLE ADS CHANGE HISTORY · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`customerId` `string` omit to use the brand’s selected default account

`campaignId` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [add_google_ads_keywords](https://hermoso.ai/docs/reference/ads/add_google_ads_keywords/) Add Google Ads keywords
- [set_google_ads_bidding](https://hermoso.ai/docs/reference/ads/set_google_ads_bidding/) Set a Google Ads bidding strategy
- [create_google_ads_ad](https://hermoso.ai/docs/reference/ads/create_google_ads_ad/) Create a Google Ads ad
- [find_google_ads_locations](https://hermoso.ai/docs/reference/ads/find_google_ads_locations/) Look up Google Ads locations
- [create_google_ads_ad_group](https://hermoso.ai/docs/reference/ads/create_google_ads_ad_group/) Add an ad group to a Google Ads campaign
- [set_google_ads_budget](https://hermoso.ai/docs/reference/ads/set_google_ads_budget/) Set a Google Ads campaign budget
- [create_google_ads_campaign](https://hermoso.ai/docs/reference/ads/create_google_ads_campaign/) Build a Google Ads campaign (paused)
- [set_google_ads_status](https://hermoso.ai/docs/reference/ads/set_google_ads_status/) Enable, pause or remove a Google Ads campaign / ad group / ad
- [google_ads_change_history](https://hermoso.ai/docs/reference/ads/google_ads_change_history/) What changed on a Google Ads account, and when
- [manage_google_ads_budget_networks](https://hermoso.ai/docs/reference/ads/manage_google_ads_budget_networks/) Google Ads waterfall priorities and network spend caps

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
