Ad

Ad

interface Ad

Defines basic properties available for every ad type

Inheritors

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.
heightabstract val height: Int
The height of the ad.
idabstract val id: String?
Identifier for the ad. This might be autogenerated.
isLinearabstract 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.