MediaVideo

  • Encapsulates a video with fields providing information about its duration, YouTube ID, and advertising identifiers.

  • Thead_duration_millis field indicates the video's duration in milliseconds.

  • Theyoutube_video_id is the immutable YouTube video ID used to construct the streaming URL.

  • advertising_id_code andisci_code are output-only identifiers primarily used for television commercials.

Encapsulates a Video.

Proto definition

Fields

ad_duration_millis

int64

Output only. The duration of the Video in milliseconds.

advertising_id_code

string

Output only. The Advertising Digital Identification code for this video, as defined by the American Association of Advertising Agencies, used mainly for television commercials.

isci_code

string

Output only. The Industry Standard Commercial Identifier code for this video, used mainly for television commercials.

youtube_video_id

string

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.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-12 UTC.