Google Ads: Update Campaign Negative Keywords
gads_update_campaign_negativesStop a Google Ads campaign from serving on queries and brands you do not want it on. Adds campaign-level negative keywords with EXACT, PHRASE or BROAD match, and for Performance Max and search campaigns adds brand exclusions — a brand list Google matches against every variation and misspelling of a brand, which plain negative keywords cannot do. Together these are the fix for a Performance Max campaign cannibalizing your own brand search: exclude your brand to push branded traffic back to the search campaign that was already winning it, or exclude a competitor's brand to stop paying for their name. Also removes negative keywords, detaches a brand list from a campaign, and takes individual brands out of a list. Attaches and detaches the account's shared negative keyword and placement exclusion lists (create and edit those with gads_update_shared_list). Call it with no changes to read what a campaign already excludes. A search campaign needs AI Max turned on (gads_update_campaign_settings with ai_max) before a brand list can be attached to it; a Performance Max campaign needs nothing. Refuses to edit a brand list that is shared with other campaigns. For ad-group-level negatives use gads_add_keywords and gads_remove_keywords; for locations and languages use gads_update_campaign_targeting.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>"
},
"name": "gads_update_campaign_negatives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brands | No | Brand names to exclude, at most 10 per call — e.g. your own brand, or a competitor's. Google resolves each name to a brand it recognizes and refuses a name it does not, listing what it suggests instead. Performance Max campaigns, and search campaigns with AI Max on. | |
| campaign_id | Yes | Campaign to change. | |
| customer_id | No | Google Ads account to change: customer id or exact account name. Required when you have several accounts — the stored default is never used for a change then. | |
| remove_brands | No | Brand names or entity ids to take OUT of the campaign's brand list. The list stays attached; emptying it excludes nothing. | |
| negative_keywords | No | Negative keywords to ADD, at most 100 per call. An entry may be a plain string or an object with a text and a match_type. Adding is additive: keywords the campaign already excludes are skipped rather than duplicated. | |
| remove_criterion_ids | No | Criterion ids to remove, as reported by this tool. Removes negative keywords, and detaches a brand list from the campaign — the list itself survives in the account for reuse. | |
| attach_shared_list_ids | No | Ids of shared negative keyword or placement exclusion lists to attach to the campaign, as reported by gads_update_shared_list. Lists already attached are skipped. | |
| detach_shared_list_ids | No | Ids of shared lists to detach from the campaign. The list itself stays in the account and on its other campaigns. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | How many criteria or brands were created. | |
| removed | Yes | How many were deleted. | |
| skipped | No | What was already in place, and so was not written again. | |
| campaignId | Yes | Campaign that was read or changed. | |
| sharedLists | No | Shared negative keyword and placement exclusion lists attached to the campaign. | |
| brandExclusions | Yes | Brand lists attached to the campaign. | |
| brandListCreated | No | True when this call built a new brand list for the campaign. | |
| negativeKeywords | Yes | Negative keywords the campaign now excludes. |