AdSource

AdSource

data class AdSource@JvmOverloadsconstructor(val type: AdSourceType, val tag: String, val vastLoadTimeout: Double = DEFAULT_VAST_LOAD_TIMEOUT, val videoLoadTimeout: Double = DEFAULT_VIDEO_LOAD_TIMEOUT) : Parcelable

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

Constructors

AdSource@JvmOverloads
constructor(type: AdSourceType, tag: String, vastLoadTimeout: Double = DEFAULT_VAST_LOAD_TIMEOUT, videoLoadTimeout: Double = DEFAULT_VIDEO_LOAD_TIMEOUT)

Properties

NameSummary
tagval tag: String
The ad tag / url to the ad manifest.
typeval type: AdSourceType
The AdSourceType of this AdSource.
vastLoadTimeoutval vastLoadTimeout: Double
The amount of seconds until the VAST loading is canceled after the download request started.
videoLoadTimeoutval videoLoadTimeout: Double
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.