AdInfo

class AdInfo(val adId: String, val positionInPod: Int, val podSize: Int, val breakType: AdBreakType, val isSkippable: Boolean, val skipOffsetMs: Long, val durationMs: Long, val clickThroughUrl: String? = null, val providerRendersUi: Boolean = false)

Metadata of a single ad, including its position in the pod.

Constructors

Link copied to clipboard
constructor(adId: String, positionInPod: Int, podSize: Int, breakType: AdBreakType, isSkippable: Boolean, skipOffsetMs: Long, durationMs: Long, clickThroughUrl: String? = null, providerRendersUi: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val clickThroughUrl: String? = null

Clickthrough ("learn more") URL, or null when unavailable.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Total number of ads in this pod.

Link copied to clipboard

1-based position of this ad within its pod.

Link copied to clipboard

True when the ads SDK renders its own skip/clickthrough UI (IMA). The SDK ad chrome then suppresses its own skip and learn-more buttons; false means the SDK owns the complete ad UI (FreeWheel).

Link copied to clipboard

When the skip button becomes available, or -1 when not skippable.

Functions

Link copied to clipboard
open override fun toString(): String