AdSource

data class AdSource @JvmOverloads constructor(val type: AdSourceType, val tag: String, val vastLoadTimeout: Double = 8.0, val videoLoadTimeout: Double = 8.0) : Parcelable

Represents an ad source which can be assigned to an AdItem. An AdItem can have multiple AdSources as waterfalling option.

Constructors

Link copied to clipboard
constructor(type: AdSourceType, tag: String, vastLoadTimeout: Double = 8.0, videoLoadTimeout: Double = 8.0)

Properties

Link copied to clipboard
val tag: String

The ad tag / url to the ad manifest.

Link copied to clipboard
Link copied to clipboard

The amount of seconds until the VAST loading is canceled after the download request started.

Link copied to clipboard

The amount of seconds until the video loading is canceled after the download request started. In case this AdSource is of type AdSourceType.Ima, this is equivalent to AdsRenderingSettings.loadVideoTimeout in the IMA library. Has no effect for AdSources of type AdSourceType.Progressive or AdSourceType.Bitmovin.