Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Update Asset Group Media

gads_update_asset_group_media
DestructiveIdempotent

Replace the images, logos, YouTube video or call-to-action of a Performance Max asset group. Images are given as public https URLs, which this server downloads and uploads to Google; videos are given as YouTube video ids, not URLs. Each list REPLACES the whole slot — send every image you want the slot to have — and a slot you omit is left untouched. An image whose bytes Google already holds keeps its existing asset and its performance history, so passing the same URLs again changes nothing; note that the match is on exact bytes, so a re-encoded copy of the same picture counts as a new image. Google's shapes are enforced before anything is uploaded: marketing images 1.91:1, square 1:1, portrait 4:5, logos 1:1, landscape logos 4:1. For headlines and descriptions use gads_update_asset_group_assets.

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": {
      "asset_group_id": "<asset_group_id>"
    },
    "name": "gads_update_asset_group_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
logosNoComplete new set of public https image URLs for this slot: at least 1, at most 5, each 1:1 and at least 128x128 pixels, PNG or JPEG under 5120 KB. Omit to leave this slot 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.
asset_group_idYesAsset group to change, as reported by gads_list_asset_groups.
call_to_actionNoThe button text Google shows. AUTOMATED removes the asset and lets Google choose, which is usually the better answer unless a specific action matters.
landscape_logosNoComplete new set of public https image URLs for this slot: optional, at most 20, each 4:1 and at least 512x128 pixels, PNG or JPEG under 5120 KB. Omit to leave this slot alone.
marketing_imagesNoComplete new set of public https image URLs for this slot: at least 1, at most 20, each 1.91:1 and at least 600x314 pixels, PNG or JPEG under 5120 KB. Omit to leave this slot alone.
youtube_video_idsNoComplete new set of YouTube video ids — the 11-character id from the watch URL, not the URL. At most 15. Omit to leave the videos alone.
square_marketing_imagesNoComplete new set of public https image URLs for this slot: at least 1, at most 20, each 1:1 and at least 300x300 pixels, PNG or JPEG under 5120 KB. Omit to leave this slot alone.
portrait_marketing_imagesNoComplete new set of public https image URLs for this slot: optional, at most 20, each 4:5 and at least 480x600 pixels, PNG or JPEG under 5120 KB. Omit to leave this slot alone.

Output Schema

NameRequiredDescriptionDefault
fieldsYesOne entry per slot this call touched.
changedYesFalse when every asset you passed was already linked, in which case no link was altered.
campaignIdNoCampaign it belongs to.
assetGroupIdYesAsset group that was changed.
callToActionNoCall to action now in effect, if this call set one.
campaignNameNoName of that campaign.
assetGroupNameNoName of the asset group.
adStrengthBeforeNoAd strength before the change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real substance beyond them: the server downloads and uploads the URLs itself, matching is on exact bytes so re-encoded copies count as new assets, and Google's aspect-ratio shapes are enforced before any upload happens. The note that unchanged bytes preserve existing asset and performance history sharpens the idempotency hint into actionable behavior.

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 operation and the replacement contract, and nearly every clause carries information (byte matching, shape enforcement, sibling routing). It is a single dense paragraph with slight repetition of the replace/omit rule that the schema also states, which keeps it just short of a 5.

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 destructive mutation tool with 9 parameters, the description covers upload mechanics, replacement semantics, idempotency nuance, validation order, and the sibling route to headline/description work. An output schema exists, so the lack of return-value detail is not a gap.

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?

With schema coverage at 100%, the baseline is 3, but the description still adds meaning the schema cannot: byte-level matching semantics for image lists, the AUTOMATED call-to-action behavior (removes the asset and lets Google choose), and the reinforce-that-videos-are-ids-not-URLs point. Only the aspect ratio and size limits are restated from the schema.

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?

The first sentence names a specific verb ('Replace') and enumerates the exact resources touched (images, logos, YouTube video, call-to-action) within a named scope (Performance Max asset group). The final sentence explicitly routes headline/description work to gads_update_asset_group_assets, so the agent can separate this tool from its closest sibling without opening either schema.

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?

It states the replacement contract precisely ('Each list REPLACES the whole slot — send every image you want the slot to have — and a slot you omit is left untouched'), which tells the agent exactly how to call it, and it names the alternative tool for the adjacent task. That is explicit when-to-use plus a named alternative.

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