OverlayAd

com.bitmovin.player.api.advertising

OverlayAd

interface OverlayAd : NonLinearAd

An ad which gets displayed during content playback.

Properties

NameSummary
clickThroughUrlabstract val clickThroughUrl: String?
The url the user should be redirected to when clicking the ad.
dataabstract val data: AdData?
Holds various additional AdData.
extensionsopen val extensions: List<VastAdExtension>
VAST Extension nodes for the ad.
heightabstract val height: Int
The height of the ad.
idabstract val id: String?
Identifier for the ad. This might be autogenerated.
isLinearopen override val isLinear: Boolean
Determines whether an ad is linear, i.e. playback of main content needs to be paused for the ad.
mediaFileUrlabstract val mediaFileUrl: String?
The corresponding media file url for the ad.
widthabstract val width: Int
The width of the ad.

Functions

NameSummary
clickThroughUrlOpenedabstract fun clickThroughUrlOpened()
Callback function to track the opening of the clickThroughUrl.
collapsedopen fun collapsed()
Callback function to track the ad collapsed state.
expandedopen fun expanded()
Callback function to track the ad expanded state.