AdClickEvent

data class AdClickEvent(val break_: Break, val assetId: String, val clickThrough: String? = null, val timestamp: Long, val format: BreakFormat? = null, val asset: Asset? = null) : OptiViewAdsEvent

The viewer clicked/tapped the ad on screen (or the application called OptiViewAds.clickAd programmatically) — the Kotlin mirror of the iOS/web adclick event. Carries the asset's declared interaction.clickThrough URL when the manifest supplies one; the SDK deliberately does NOT open it — that is the application's decision.

Constructors

Link copied to clipboard
constructor(break_: Break, assetId: String, clickThrough: String? = null, timestamp: Long, format: BreakFormat? = null, asset: Asset? = null)

Properties

Link copied to clipboard
val asset: Asset?

The resolved asset, mirroring the web events' asset field.

Link copied to clipboard

Id of the clicked asset.

Link copied to clipboard

The break the clicked ad belongs to.

Link copied to clipboard

The asset's declared click-through URL, when the manifest supplies one.

Link copied to clipboard

Declared format of the break's selected variant (PLAYG-182).

Link copied to clipboard
open override val timestamp: Long

When the event was emitted, in milliseconds since the Unix epoch.

Link copied to clipboard
open override val type: OptiViewAdsEventType

Which event this is.