type Image (v201802)

Encapsulates an Image media. For SET,REMOVE operations in MediaService, use mediaId.


Namespace
https://adwords.google.com/api/adwords/cm/v201802

Field

Media (inherited)

mediaId

xsd:long

ID of this media object.

This field can be selected using the value "MediaId".
This field is required and should not be null when it is contained within Operators : SET, REMOVE.

type

Media.MediaType

Type of media object. Required when using MediaService.upload to upload a new media file. MEDIA_BUNDLE, ICON, IMAGE, and DYNAMIC_IMAGE are the supported MediaTypes to upload.


Enumerations
AUDIO
Audio file.
DYNAMIC_IMAGE
Animated image, such as animated GIF.
ICON
Small image; used for map ad.
IMAGE
Static image; for image ad.
STANDARD_ICON
Predefined standard icon; used for map ads.
VIDEO
Video file.
MEDIA_BUNDLE
ZIP file; used in fields of template ads.

This field can be selected using the value "Type".
This field is read only and will be ignored when sent to the API for the following Operators: REMOVE and SET.

referenceId

xsd:long

Media reference ID key.

This field can be selected using the value "ReferenceId".
This field is read only and will be ignored when sent to the API for the following Operators: REMOVE and SET.

dimensions

Media_Size_DimensionsMapEntry[]

Various dimension sizes for the media. Only applies to image media (and video media for video thumbnails).

This field can be selected using the value "Dimensions".

urls

Media_Size_StringMapEntry[]

URLs pointing to the resized media for the given sizes. Only applies to image media.

This field can be selected using the value "Urls".
This field is read only and will be ignored when sent to the API.

mimeType

Media.MimeType

The mime type of the media.


Enumerations
IMAGE_JPEG
MIME type of image/jpeg
IMAGE_GIF
MIME type of image/gif
IMAGE_PNG
MIME type of image/png
FLASH
MIME type of application/x-shockwave-flash
TEXT_HTML
MIME type of text/html
PDF
MIME type of application/pdf
MSWORD
MIME type of application/msword
MSEXCEL
MIME type of application/vnd.ms-excel
RTF
MIME type of application/rtf
AUDIO_WAV
MIME type of audio/wav
AUDIO_MP3
MIME type of audio/mp3
HTML5_AD_ZIP
MIME type of application/x-html5-ad-zip

This field can be selected using the value "MimeType".
This field is read only and will be ignored when sent to the API for the following Operators: REMOVE and SET.

sourceUrl

xsd:string

The URL of where the original media was downloaded from (or a file name).

This field can be selected using the value "SourceUrl".
This field is read only and will be ignored when sent to the API for the following Operators: REMOVE and SET.

name

xsd:string

The name of the media. The name can be used by clients to help identify previously uploaded media.

This field can be selected using the value "Name".

fileSize

xsd:long

The size of the media file in bytes.

This field can be selected using the value "FileSize".
This field is read only and will be ignored when sent to the API for the following Operators: REMOVE and SET.

creationTime

xsd:string

Media creation date in the format YYYY-MM-DD HH:MM:SS+TZ. This is not updatable and not specifiable.

This field can be selected using the value "CreationTime".
This field is read only and will be ignored when sent to the API for the following Operators: REMOVE and SET.

Media.Type

xsd:string

Indicates that this instance is a subtype of Media. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

Image

data

xsd:base64Binary

Raw image data.

Send feedback about...

AdWords API
AdWords API
Need help? Visit our support page.