A media file.
JSON representation |
---|
{ "resourceName": string, "type": enum ( |
Fields | |
---|---|
resourceName |
Immutable. The resource name of the media file. Media file resource names have the form:
|
type |
Immutable. Type of the media file. |
mimeType |
Output only. The mime type of the media file. |
id |
Output only. The ID of the media file. |
sourceUrl |
Immutable. The URL of where the original media file was downloaded from (or a file name). Only used for media of type AUDIO and IMAGE. |
name |
Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media. |
fileSize |
Output only. The size of the media file in bytes. |
Union field mediatype . The specific type of the media file. mediatype can be only one of the following: |
|
image |
Immutable. Encapsulates an Image. |
mediaBundle |
Immutable. A ZIP archive media the content of which contains HTML5 assets. |
audio |
Output only. Encapsulates an Audio. |
video |
Immutable. Encapsulates a Video. |
MediaType
The type of media.
Enums | |
---|---|
UNSPECIFIED |
The media type has not been specified. |
UNKNOWN |
The received value is not known in this version. This is a response-only value. |
IMAGE |
Static image, used for image ad. |
ICON |
Small image, used for map ad. |
MEDIA_BUNDLE |
ZIP file, used in fields of template ads. |
AUDIO |
Audio file. |
VIDEO |
Video file. |
DYNAMIC_IMAGE |
Animated image, such as animated GIF. |
MediaImage
Encapsulates an Image.
JSON representation |
---|
{ "data": string, "fullSizeImageUrl": string, "previewSizeImageUrl": string } |
Fields | |
---|---|
data |
Immutable. Raw image data. A base64-encoded string. |
fullSizeImageUrl |
Output only. The url to the full size version of the image. |
previewSizeImageUrl |
Output only. The url to the preview size version of the image. |
MediaBundle
Represents a ZIP archive media the content of which contains HTML5 assets.
JSON representation |
---|
{ "data": string, "url": string } |
Fields | |
---|---|
data |
Immutable. Raw zipped data. A base64-encoded string. |
url |
Output only. The url to access the uploaded zipped data. For example, https://tpc.googlesyndication.com/simgad/123 This field is read-only. |
MediaAudio
Encapsulates an Audio.
JSON representation |
---|
{ "adDurationMillis": string } |
Fields | |
---|---|
adDurationMillis |
Output only. The duration of the Audio in milliseconds. |
MediaVideo
Encapsulates a Video.
JSON representation |
---|
{ "adDurationMillis": string, "youtubeVideoId": string, "advertisingIdCode": string, "isciCode": string } |
Fields | |
---|---|
adDurationMillis |
Output only. The duration of the Video in milliseconds. |
youtubeVideoId |
Immutable. The YouTube video ID (as seen in YouTube URLs). Adding prefix "https://www.youtube.com/watch?v=" to this ID will get the YouTube streaming URL for this video. |
advertisingIdCode |
Output only. The Advertising Digital Identification code for this video, as defined by the American Association of Advertising Agencies, used mainly for television commercials. |
isciCode |
Output only. The Industry Standard Commercial Identifier code for this video, used mainly for television commercials. |