Ad

interface Ad

Defines basic properties available for every ad type

Inheritors

Properties

Link copied to clipboard
abstract val clickThroughUrl: String?

The url the user should be redirected to when clicking the ad.

Link copied to clipboard
abstract val data: AdData?

Holds various additional AdData.

Link copied to clipboard
abstract val height: Int

The height of the ad.

Link copied to clipboard
abstract val id: String?

Identifier for the ad. This might be autogenerated.

Link copied to clipboard
abstract val isLinear: Boolean

Determines whether an ad is linear, i.e. playback of main content needs to be paused for the ad.

Link copied to clipboard
abstract val mediaFileUrl: String?

The corresponding media file url for the ad.

Link copied to clipboard
abstract val width: Int

The width of the ad.

Functions

Link copied to clipboard
abstract fun clickThroughUrlOpened()

Callback function to track the opening of the clickThroughUrl.