ImageAdInfo

  • The image ad data includes information about the image's mime type, dimensions (full and preview), and URLs.

  • Additional fields provide the name of the image and union fields specify how the image is sourced (via asset, raw data, or copied from another ad).

An image ad.

Proto definition

Fields

image

Union field. The image to create the ImageAd from. This can be specified in one of two ways. 1. An existing MediaFile resource. 2. The raw image data as bytes.

image can be only one of the following:

ad_id_to_copy_image_from

int64

An ad ID to copy the image from.

data

bytes

Raw image data as bytes.

image_asset

AdImageAsset

The image assets used for the ad.

image_url

string

URL of the full size image.

mime_type

MimeType

The mime type of the image.

name

string

The name of the image. If the image was created from a MediaFile, this is the MediaFile's name. If the image was created from bytes, this is empty.

pixel_height

int64

Height in pixels of the full size image.

pixel_width

int64

Width in pixels of the full size image.

preview_image_url

string

URL of the preview size image.

preview_pixel_height

int64

Height in pixels of the preview size image.

preview_pixel_width

int64

Width in pixels of the preview size image.