Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Update Ad

gads_update_ad
DestructiveIdempotent

Rewrite the copy of an existing responsive search ad: its headlines, descriptions, landing page and display paths. The ad keeps its id and performance history, and Google puts it back into policy review after the edit. Each list you pass REPLACES the whole list — send every headline you want the ad to have, not just the new ones — and a field you omit is left untouched. Read the current copy first with gads_list_ads. Only responsive search ads can be edited this way; for other ad types create a new one with gads_create_ad.

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": {
      "ad_id": "<ad_id>"
    },
    "name": "gads_update_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYesAd to rewrite, as reported by gads_list_ads.
path1NoFirst display path segment shown after the domain, at most 15 characters. Pass an empty string to remove it.
path2NoSecond display path segment. Requires path1.
final_urlNoNew landing page the ad clicks through to, an http(s) URL.
headlinesNoComplete new set of headlines, 3-15 entries of at most 30 characters. An entry may be a plain string or an object with text and pinned. Omit to leave the headlines alone.
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.
descriptionsNoComplete new set of descriptions, 2-4 entries of at most 90 characters. Omit to leave the descriptions alone.

Output Schema

NameRequiredDescriptionDefault
adIdYesAd that was rewritten — unchanged by the edit.
path1NoFirst display path now in effect.
path2NoSecond display path now in effect.
adGroupIdYesAd group it belongs to.
finalUrlsNoLanding pages now in effect.
headlinesNoHeadlines now in effect.
campaignIdYesCampaign it belongs to.
descriptionsNoDescriptions now in effect.
previousApprovalStatusNoPolicy verdict the ad carried before the edit. Google reviews an edited ad again, so expect it to read UNDER_REVIEW for a while.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing consequences the agent cannot see in structured fields: the ad keeps its id and performance history, Google re-runs policy review after the edit, each list REPLACES the entire prior list, and omitted fields stay untouched. This also makes the destructiveHint=true concrete rather than abstract, and the replacement semantics warn about the exact mistake an agent would make.

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

Conciseness5/5

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

Four sentences, front-loaded with the core action, then side effects, then the destructive replacement rule, then sibling routing. No filler and no repetition; the em-dash clause on list replacement is the highest-risk fact placed where it will be read.

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 a 7-parameter mutation tool with an output schema and rich annotations, the description supplies the missing operational context: prerequisite read, side effects (policy review, preserved history), replacement semantics, and the typed-scope limitation. An agent can call this correctly without further exploration.

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

Parameters3/5

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

Schema description coverage is 100% and the schema already documents replacement behavior per field ('Complete new set of headlines... Omit to leave the headlines alone'), pinned slots, character limits, and the empty-string removal for path1. The description restates the list-replacement rule as a prominent warning, which is useful emphasis but adds no meaning the schema lacks, so baseline 3 applies.

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?

States a specific verb and resource ('Rewrite the copy of an existing responsive search ad') and enumerates the editable surfaces: headlines, descriptions, landing page, display paths. It also scopes the tool to responsive search ads only, which separates it from gads_create_ad and gads_update_ad_group.

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 an explicit prerequisite ('Read the current copy first with gads_list_ads'), an explicit exclusion ('Only responsive search ads can be edited this way'), and names the alternative for the excluded case ('create a new one with gads_create_ad'). Nothing about when to reach for this tool versus siblings is left to inference.

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