Interface AdBreak

Represents an ad break in the VMAP specification or an ad pod in the VAST specification.

interface AdBreak {
    ads: undefined | Ad[];
    integration: undefined | string;
    maxDuration: undefined | number;
    maxRemainingDuration: undefined | number;
    timeOffset: number;
}

Properties

ads: undefined | Ad[]

List of ads which will be played sequentially at the ad break's time offset.

integration: undefined | string

The integration of the ad break, represented by a value from AdIntegrationKind or the identifier of a custom integration registered with Ads.registerServerSideIntegration.

maxDuration: undefined | number

The duration of the ad break, in seconds.

Remarks


- Ads are lazily loaded. This property becomes available when all ads are loaded.

maxRemainingDuration: undefined | number

The remaining duration of the ad break, in seconds.

Remarks


- Ads are lazily loaded. This property becomes available when all ads are loaded.
- This feature is not available in the Google IMA integration and will default to -1.

timeOffset: number

The time offset at which content will be paused to play the ad break, in seconds.