Upload Image to Google Ads
create_image_assetActually uploads an image into this Google Ads account as a real ImageAsset, usable in PMax asset groups, Display ads, etc. Pass the filename returned by get_image_upload_url after the file has been POSTed there — this reads those bytes server-side, so no base64 ever needs to pass through a tool call. Returns the asset resource_name. ALWAYS confirm the filename and asset name with the user before calling this.
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": {
"filename": "<filename>",
"user_intent": "<user_intent>"
},
"name": "create_image_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The filename returned by get_image_upload_url (the uploaded copy, not a local path). | |
| asset_name | No | Optional display name for the asset in Google Ads. Defaults to the filename. | |
| customer_id | No | Google Ads customer ID (no dashes) of the client account the image should be created in. Omit to use the MCC/login account — almost never what you want when working on a specific client; pass the same customer_id used for create_asset_group / add_asset_group_assets on that campaign. | |
| user_intent | Yes |