Google Ads: Update Asset Group Media
gads_update_asset_group_mediaReplace 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
| Name | Required | Description | Default |
|---|---|---|---|
| logos | No | Complete 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_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. | |
| asset_group_id | Yes | Asset group to change, as reported by gads_list_asset_groups. | |
| call_to_action | No | The button text Google shows. AUTOMATED removes the asset and lets Google choose, which is usually the better answer unless a specific action matters. | |
| landscape_logos | No | Complete 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_images | No | Complete 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_ids | No | Complete 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_images | No | Complete 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_images | No | Complete 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
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | One entry per slot this call touched. | |
| changed | Yes | False when every asset you passed was already linked, in which case no link was altered. | |
| campaignId | No | Campaign it belongs to. | |
| assetGroupId | Yes | Asset group that was changed. | |
| callToAction | No | Call to action now in effect, if this call set one. | |
| campaignName | No | Name of that campaign. | |
| assetGroupName | No | Name of the asset group. | |
| adStrengthBefore | No | Ad strength before the change. |