ImageAdInfo

An image ad.

Fields

mime_type

MimeType

The mime type of the image.

pixel_width

int64

Width in pixels of the full size image.

pixel_height

int64

Height in pixels of the full size image.

image_url

string

URL of the full size image.

preview_pixel_width

int64

Width in pixels of the preview size image.

preview_pixel_height

int64

Height in pixels of the preview size image.

preview_image_url

string

URL of the preview size 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.

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:

image_asset

AdImageAsset

The image assets used for the ad.

data

bytes

Raw image data as bytes.

ad_id_to_copy_image_from

int64

An ad ID to copy the image from.