- Resource: VodSession
- Interstitials
- VodSessionAdBreak
- VodSessionAd
- VodSessionContent
- GamSettings
- Methods
Resource: VodSession
Metadata for a VOD session. The session expires 4 hours after its creation.
JSON representation |
---|
{ "name": string, "interstitials": { object ( |
Fields | |
---|---|
name |
Output only. The name of the VOD session, in the form of |
interstitials |
Output only. Metadata of what was stitched into the content. |
playUri |
Output only. The playback URI of the stitched content. |
sourceUri |
URI of the media to stitch. For most use cases, you should create a |
adTagUri |
Ad tag URI. For most use cases, you should create a |
adTagMacroMap |
Key value pairs for ad tag macro replacement, only available for VOD sessions that do not implement Google Ad manager ad insertion. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets, for example: Ad tag URI: Ad tag macro map: Fully qualified ad tag: An object containing a list of |
manifestOptions |
Additional options that affect the output of the manifest. |
assetId |
Output only. The generated ID of the VodSession's source media. |
adTracking |
Required. Determines how the ad should be tracked. |
gamSettings |
This field should be set with appropriate values if GAM is being used for ads. |
vodConfig |
The resource name of the VOD config for this session, in the form of |
Interstitials
Describes what was stitched into a VOD session's manifest.
JSON representation |
---|
{ "adBreaks": [ { object ( |
Fields | |
---|---|
adBreaks[] |
List of ad breaks ordered by time. |
sessionContent |
Information related to the content of the VOD session. |
VodSessionAdBreak
Metadata for an inserted ad break.
JSON representation |
---|
{ "progressEvents": [ { object ( |
Fields | |
---|---|
progressEvents[] |
List of events that are expected to be triggered, ordered by time. |
ads[] |
Ordered list of ads stitched into the ad break. |
endTimeOffset |
Ad break end time in seconds relative to the start of the VOD asset. A duration in seconds with up to nine fractional digits, ending with ' |
startTimeOffset |
Ad break start time in seconds relative to the start of the VOD asset. A duration in seconds with up to nine fractional digits, ending with ' |
VodSessionAd
Metadata for an inserted ad in a VOD session.
JSON representation |
---|
{ "duration": string, "companionAds": { object ( |
Fields | |
---|---|
duration |
Duration in seconds of the ad. A duration in seconds with up to nine fractional digits, ending with ' |
companionAds |
Metadata of companion ads associated with the ad. |
activityEvents[] |
The list of progress tracking events for the ad break. These can be of the following IAB types: |
VodSessionContent
Metadata for the entire stitched content in a VOD session.
JSON representation |
---|
{ "duration": string } |
Fields | |
---|---|
duration |
The total duration in seconds of the content including the ads stitched in. A duration in seconds with up to nine fractional digits, ending with ' |
GamSettings
Defines fields related to Google Ad Manager (GAM). This should be set if GAM is being used for ads.
JSON representation |
---|
{ "networkCode": string, "streamId": string } |
Fields | |
---|---|
networkCode |
Required. Ad Manager network code. |
streamId |
Required. The stream ID generated by Ad Manager. |
Methods |
|
---|---|
|
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session. |
|
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session. |