ImageAdInfo

An image ad.

Fields

pixel_width

Int64Value

Width in pixels of the full size image.

pixel_height

Int64Value

Height in pixels of the full size image.

image_url

StringValue

URL of the full size image.

preview_pixel_width

Int64Value

Width in pixels of the preview size image.

preview_pixel_height

Int64Value

Height in pixels of the preview size image.

preview_image_url

StringValue

URL of the preview size image.

mime_type

MimeType

The mime type of the image.

name

StringValue

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.

Union field

image

image. 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:

media_file

StringValue

The MediaFile resource to use for the image.

data

BytesValue

Raw image data as bytes.

ad_id_to_copy_image_from

Int64Value

An ad ID to copy the image from.