This is the legacy documentation for Google Ads scripts. Go to the current docs.

AdsApp.​MediaUrls

URLs for different sizes of a media object.

Methods:

MemberTypeDescription
getFullUrl String Returns the URL for the full size of the media object.
getPreviewUrl String Returns the URL for the preview size of the media object.
getShrunkenUrl String Returns the URL for the shrunken size of the media object.
getVideoThumbnailUrl String Returns the URL for the video thumbnail size of the media object.

getFullUrl()

Returns the URL for the full size of the media object.

Return values:

TypeDescription
String The full size URL.

getPreviewUrl()

Returns the URL for the preview size of the media object.

Return values:

TypeDescription
String The preview size URL.

getShrunkenUrl()

Returns the URL for the shrunken size of the media object.

Return values:

TypeDescription
String The shrunken size URL.

getVideoThumbnailUrl()

Returns the URL for the video thumbnail size of the media object.

Return values:

TypeDescription
String The video thumbnail size URL.