Google Ads: create image asset
create_image_assetUploads a PNG or JPEG image (max 5120 KB) to the account's asset library.
Where an image can then be used: Performance Max, through
add_assets_to_asset_group (MARKETING_IMAGE 1.91:1 min 600x314,
SQUARE_MARKETING_IMAGE 1:1 min 300x300, PORTRAIT_MARKETING_IMAGE 4:5
min 480x600, LOGO 1:1 min 128x128, LANDSCAPE_LOGO 4:1 min 512x128).
On Search, only as AD_IMAGE (campaign or ad group; Google requires an
eligible account) or BUSINESS_LOGO (campaign) via link_asset_to_campaign /
link_asset_to_ad_group — the marketing image and logo types above are
refused for Search campaigns.
Args:
customer_id: The Google Ads customer ID (numbers only, no hyphens).
image_source: One of: an http(s) URL the server can download; a data
URI (data:image/png;base64,...) when there is no public URL; or a
file path, which only works when this server runs on the same
machine as the file — a hosted connector needs a URL or data URI.
asset_name: A name for the image asset.
Returns:
Dictionary with the created asset resource name, and the image's
mime_type, width and height.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_name | Yes | ||
| customer_id | Yes | ||
| image_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |