Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Update Campaign Negative Keywords

gads_update_campaign_negatives
DestructiveIdempotent

Stop 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

NameRequiredDescriptionDefault
brandsNoBrand 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_idYesCampaign to change.
customer_idNoGoogle 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_brandsNoBrand names or entity ids to take OUT of the campaign's brand list. The list stays attached; emptying it excludes nothing.
negative_keywordsNoNegative 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_idsNoCriterion 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_idsNoIds 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_idsNoIds of shared lists to detach from the campaign. The list itself stays in the account and on its other campaigns.

Output Schema

NameRequiredDescriptionDefault
addedYesHow many criteria or brands were created.
removedYesHow many were deleted.
skippedNoWhat was already in place, and so was not written again.
campaignIdYesCampaign that was read or changed.
sharedListsNoShared negative keyword and placement exclusion lists attached to the campaign.
brandExclusionsYesBrand lists attached to the campaign.
brandListCreatedNoTrue when this call built a new brand list for the campaign.
negativeKeywordsYesNegative keywords the campaign now excludes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the mutation and repeat-safety profile is known. The description usefully adds non-schema behavior: additive adds are de-duplicated, detach keeps the list alive in the account, edits to a brand list shared with other campaigns are refused, and a no-argument call reads current exclusions. It does not discuss the response shape, but an output schema exists, so the remaining gap is small.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the effect and the flagship use case, then the full operation list, then the prerequisite and constraints. Dense but mostly earns its length; the Performance Max brand-cannibalization sentence is somewhat long and could be tightened without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter destructive mutation with a rich output schema and full annotation coverage, the definition supplies the prerequisites (AI Max), the refusal condition (shared brand list), the additive/detach semantics, and the sibling routing. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 is the floor; the description goes further by explaining that Google resolves brand names against its own brand list and rejects unrecognized ones with suggestions, that remove_brands leaves the list attached, and that remove_criterion_ids also detaches an entire brand list. The match-type tradeoff ('a broad negative is the blunt one') is instructionally useful rather than restating the enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb and outcome ('Stop a Google Ads campaign from serving on queries and brands'), then enumerates exactly what it does: add negative keywords with match types, add brand exclusions, remove negatives, detach brand lists, remove individual brands, and attach/detach shared lists. It explicitly separates itself from gads_add_keywords/gads_remove_keywords (ad-group level) and gads_update_campaign_targeting (locations/languages).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the primary motivating scenario (Performance Max cannibalizing brand search, competitor-brand exclusion), names alternatives for adjacent jobs, explains where to create shared lists (gads_update_shared_list), and states the prerequisite that a search campaign needs AI Max enabled via gads_update_campaign_settings while PMax needs nothing. An agent knows when to pick this tool and when not to.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources