AdWordsApp.​Media

An AdWords media object.

Methods:

MemberTypeDescription
getDimensions AdWordsApp.MediaDimensions Returns a MediaDimensions instance for the media object if it is an image or video.
getFileSize Long Returns the size of the media file in bytes.
getId Long Returns the ID of the media object.
getMimeType String Returns a MIME type identifier for the media object.
getName String Returns the name of the media object.
getReferenceId String Returns the media object's reference ID key.
getSourceUrl String Returns the URL where the original media was downloaded from.
getType String Returns the media object's type.
getUrls AdWordsApp.MediaUrls Returns a MediaUrls instance for the media object if it is an image.
getYouTubeVideoId void Returns the YouTube video ID if this media is a YouTube video, or null otherwise.

getDimensions()

Returns a MediaDimensions instance for the media object if it is an image or video.

Return values:

TypeDescription
AdWordsApp.MediaDimensions The media dimensions.

getFileSize()

Returns the size of the media file in bytes.

Return values:

TypeDescription
Long The file size.

getId()

Returns the ID of the media object.

Return values:

TypeDescription
Long The media ID.

getMimeType()

Returns a MIME type identifier for the media object. For example, this returns IMAGE_PNG for the image/png MIME type. See the API documentation for all possible values.

Return values:

TypeDescription
String The MIME type.

getName()

Returns the name of the media object.

Return values:

TypeDescription
String The media object's name.

getReferenceId()

Returns the media object's reference ID key.

Return values:

TypeDescription
String The media reference ID.

getSourceUrl()

Returns the URL where the original media was downloaded from.

Return values:

TypeDescription
String The source URL.

getType()

Returns the media object's type. This is one of AUDIO, DYNAMIC_IMAGE, ICON, IMAGE, STANDARD_ICON, VIDEO, or MEDIA_BUNDLE.

Return values:

TypeDescription
String The media type.

getUrls()

Returns a MediaUrls instance for the media object if it is an image.

Return values:

TypeDescription
AdWordsApp.MediaUrls The media URLs.

getYouTubeVideoId()

Returns the YouTube video ID if this media is a YouTube video, or null otherwise.

Returns nothing.

Оставить отзыв о...

Текущей странице
AdWords Scripts
AdWords Scripts
Нужна помощь? Обратитесь в службу поддержки.