ImaAdBreak

Contains IMA specific information about an AdBreak.

Properties

Link copied to clipboard
abstract val ads: List<Ad>

The ads scheduled for this AdBreak.

Link copied to clipboard
abstract val currentFallbackIndex: Int?

Used internally for keeping track of the current fallback index when doing ad-waterfalling.

Link copied to clipboard
abstract val fallbackTags: Array<AdTag>

Defines an array of fallback ad tags which will be tried one after the other if the original ad tag does not provide a valid response.

Link copied to clipboard
abstract val id: String

The id of the corresponding AdBreakConfig.

Link copied to clipboard
abstract val position: String

Defines when the ad break should be played. Default is 'pre'.

Link copied to clipboard

Returns how many seconds of the main video content should be replaced by ad break(s).

Link copied to clipboard
abstract val scheduleTime: Double

The time in seconds in the media timeline the AdBreak is scheduled for.

Link copied to clipboard
abstract val skippableAfter: Double?

Specifies after which time ads in the ad break become skippable. By setting it to -1, an ad is marked as not skippable. This overrides the skip settings from the downloaded ads.

Link copied to clipboard
abstract val tag: AdTag

Defines the url and type of the ad manifest. If the tag is a VAST or VPAID manifest, then more specific scheduling options can be defined in the AdBreakConfig.