type VideoMetadata (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Metadata for a video asset.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
scalableType
|
ScalableType
The scalable type of the asset. This attribute is required.
Enumerations
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API
version.
-
NOT_SCALABLE
- The creative should not be scaled.
-
RATIO_SCALABLE
- The creative can be scaled and its aspect-ratio must be maintained.
-
STRETCH_SCALABLE
- The creative can be scaled and its aspect-ratio can be distorted.
|
duration
|
xsd:int
The duration of the asset in milliseconds. This attribute is required.
|
bitRate
|
xsd:int
The bit rate of the asset in kbps. If the asset can play at a range of bit rates (such as an
Http Live Streaming video), then set the bit rate to zero and populate the minimum and maximum
bit rate instead.
|
minimumBitRate
|
xsd:int
The minimum bitrate of the video in kbps. Only set this if the asset can play at a range of bit
rates.
|
maximumBitRate
|
xsd:int
The maximum bitrate of the video in kbps. Only set this if the asset can play at a range of bit
rates.
|
size
|
Size
The size (width and height) of the asset. This attribute is required.
|
mimeType
|
MimeType
The mime type of the asset. This attribute is required.
Enumerations
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API
version.
-
ASP
- application/x-asp
-
AUDIO_AIFF
- audio/aiff
-
AUDIO_BASIC
- audio/basic
-
AUDIO_FLAC
- audio/flac
-
AUDIO_MID
- audio/mid
-
AUDIO_MP3
- audio/mpeg
-
AUDIO_MP4
- audio/mp4
-
AUDIO_MPEG_URL
- audio/x-mpegurl
-
AUDIO_MS_WMA
- audio/x-ms-wma
-
AUDIO_OGG
- audio/ogg
-
AUDIO_REAL_AUDIO_PLUGIN
- audio/x-pn-realaudio-plugin
-
AUDIO_WAV
- audio/x-wav
-
BINARY
- application/binary
-
DASH
- application/dash+xml
-
DIRECTOR
- application/x-director
-
FLASH
- application/x-shockwave-flash
-
GRAPHIC_CONVERTER
- application/graphicconverter
-
JAVASCRIPT
- application/x-javascript
-
JSON
- application/json
-
IMAGE_BITMAP
- image/x-win-bitmap
-
IMAGE_BMP
- image/bmp
-
IMAGE_GIF
- image/gif
-
IMAGE_JPEG
- image/jpeg
-
IMAGE_PHOTOSHOP
- image/photoshop
-
IMAGE_PNG
- image/png
-
IMAGE_TIFF
- image/tiff
-
IMAGE_WBMP
- image/vnd.wap.wbmp
-
M3U8
- application/x-mpegURL
-
MAC_BIN_HEX_40
- application/mac-binhex40
-
MS_EXCEL
- application/vnd.ms-excel
-
MS_POWERPOINT
- application/ms-powerpoint
-
MS_WORD
- application/msword
-
OCTET_STREAM
- application/octet-stream
-
PDF
- application/pdf
-
POSTSCRIPT
- application/postscript
-
RN_REAL_MEDIA
- application/vnd.rn-realmedia
-
RFC_822
- message/rfc822
-
RTF
- application/rtf
-
TEXT_CALENDAR
- text/calendar
-
TEXT_CSS
- text/css
-
TEXT_CSV
- text/csv
-
TEXT_HTML
- text/html
-
TEXT_JAVA
- text/java
-
TEXT_PLAIN
- text/plain
-
VIDEO_3GPP
- video/3gpp
-
VIDEO_3GPP2
- video/3gpp2
-
VIDEO_AVI
- video/avi
-
VIDEO_FLV
- video/x-flv
-
VIDEO_MP4
- video/mp4
-
VIDEO_MP4V_ES
- video/mp4v-es
-
VIDEO_MPEG
- video/mpeg
-
VIDEO_MS_ASF
- video/x-ms-asf
-
VIDEO_MS_WM
- video/x-ms-wm
-
VIDEO_MS_WMV
- video/x-ms-wmv
-
VIDEO_MS_WVX
- video/x-ms-wvx
-
VIDEO_OGG
- video/ogg
-
VIDEO_QUICKTIME
- video/x-quicktime
-
VIDEO_WEBM
- video/webm
-
XAML
- application/xaml+xml
-
XHTML
- application/xhtml+xml
-
XML
- application/xml
-
ZIP
- application/zip
|
deliveryType
|
VideoDeliveryType
The delivery type of the asset. This attribute is required.
Enumerations
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API
version.
-
PROGRESSIVE
- Video will be served through a progressive download.
-
STREAMING
- Video will be served via a streaming protocol like HLS or DASH.
|
codecs
|
xsd:string[]
The codecs of the asset. This attribute is optional and defaults to an empty list.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eVideoMetadata objects define essential information about video assets, such as duration, bit rate, size, and delivery type.\u003c/p\u003e\n"],["\u003cp\u003eRequired attributes for VideoMetadata include scalable type, duration, size, and mime type.\u003c/p\u003e\n"],["\u003cp\u003eVideo bit rate can be specified as a single value or as a range with minimum and maximum values.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edeliveryType\u003c/code\u003e attribute distinguishes between progressive download and streaming delivery for videos.\u003c/p\u003e\n"],["\u003cp\u003eCodecs used in the video asset are optionally specified in the \u003ccode\u003ecodecs\u003c/code\u003e attribute.\u003c/p\u003e\n"]]],["The `VideoMetadata` defines properties for video assets, including `scalableType` (how it scales), `duration` (in milliseconds), `bitRate` (in kbps), `minimumBitRate`, `maximumBitRate`, `size` (width and height), `mimeType` (file format), `deliveryType` (progressive download or streaming), and `codecs`. Key actions include setting required attributes like `scalableType`, `duration`, `size`, `mimeType`, and `deliveryType`, while `bitRate` and `minimum/maximumBitRate` are conditionally set based on the video's ability to play at different bitrates.\n"],null,[]]