Google Ads: add account-level negative keywords
add_account_negativesAdds account-level negative keywords: words blocked in every campaign.
Use for words the business never wants to show for anywhere (e.g.
brand-safety terms, "free", "jobs"). In the Google Ads API these live in
the account's single account-level negative keyword list (a shared set
of type ACCOUNT_LEVEL_NEGATIVE_KEYWORDS, linked to the account by a
CustomerNegativeCriterion). This tool adds the words to that list if the
account already has one, and otherwise creates the list, adds the words
and links it to the account. remove_account_negatives takes words back
out.
Limits (Google's): an account has at most one account-level list, of up
to 1,000 keywords. Google applies it to the search and shopping
inventory of Search, Shopping, Performance Max, App, Smart and Local
campaigns — not to Display or Video placements.
Args:
customer_id: The Google Ads customer ID (numbers only, no hyphens).
keywords: List of keyword objects, each with:
- text: The keyword text (e.g., "free").
- match_type: One of: EXACT, PHRASE, BROAD. Default: BROAD.
Exact duplicates are dropped.
Returns:
Dictionary with the account-level list's shared_set_id, whether it
was created now, and the keywords added.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |