Skip to content

google_ads_image_asset

An image asset points bidsmith at an image that is already in your account’s asset library, addressed by the name it carries there. It’s what a Demand Gen creative uses as its logo, via the logo_images attribute of a demand_gen_video_responsive_ad block.

If no image in the account carries the name you wrote, plan stops and says so rather than sending an operation that cannot work.

Where the name comes from

In Google Ads, open Assets → Images. The name in the list is what goes in name — for images uploaded through the UI that is usually the filename.

resource "google_ads_image_asset" "logo" {
name = "Brand logo 1200x1200"
}

When two images share a name

Asset names are not unique. If several images answer to the same name, bidsmith adopts the first and warns that the rest stay unmanaged. Pin the one you mean with its id:

resource "google_ads_image_asset" "logo" {
name = "Brand logo 1200x1200"
asset_id = "123456789"
}

With asset_id set, name is documentation — the id is what the match runs on.

What the image has to look like

For a Demand Gen logo, Google requires a square image: at least 128×128, aspect ratio 1:1 (±1%), in GIF, JPEG, or PNG. An ad takes 1 to 5 of them.

Schema

Required

  • name ( String )

Optional

  • asset_id ( String )

See also