Ad
interface Ad
Defines basic properties available for every ad type
Inheritors
Properties
| Name | Summary |
|---|---|
| clickThroughUrl | abstract val clickThroughUrl: String? The url the user should be redirected to when clicking the ad. |
| data | abstract val data: AdData? Holds various additional AdData. |
| height | abstract val height: Int The height of the ad. |
| id | abstract val id: String? Identifier for the ad. This might be autogenerated. |
| isLinear | abstract val isLinear: Boolean Determines whether an ad is linear, i.e. playback of main content needs to be paused for the ad. |
| mediaFileUrl | abstract val mediaFileUrl: String? The corresponding media file url for the ad. |
| width | abstract val width: Int The width of the ad. |
Functions
| Name | Summary |
|---|---|
| clickThroughUrlOpened | abstract fun clickThroughUrlOpened() Callback function to track the opening of the clickThroughUrl. |
| collapsed | open fun collapsed() Callback function to track the ad collapsed state. |
| expanded | open fun expanded() Callback function to track the ad expanded state. |