AdEndEvent

data class AdEndEvent(val break_: Break, val assetId: String, val adIndex: Int, val totalAds: Int, val timestamp: Long, val format: BreakFormat? = null, val asset: Asset? = null, val adId: String? = null, val creativeId: String? = null) : OptiViewAdsEvent

An individual ad finishes.

Constructors

Link copied to clipboard
constructor(break_: Break, assetId: String, adIndex: Int, totalAds: Int, timestamp: Long, format: BreakFormat? = null, asset: Asset? = null, adId: String? = null, creativeId: String? = null)

Properties

Link copied to clipboard
val adId: String?

IMA ad id for an ad of a GAM pod (PLAYG-362); null otherwise.

Link copied to clipboard

0-based index of the ad within the break.

Link copied to clipboard
val asset: Asset?

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

Link copied to clipboard

Id of the asset that finished; for an ad of a GAM pod, <podAssetId>-ad-<n>.

Link copied to clipboard

The break the ad belongs to.

Link copied to clipboard

IMA creative id for an ad of a GAM pod (PLAYG-362); null otherwise.

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

Total number of ads in the break.

Link copied to clipboard
open override val type: OptiViewAdsEventType

Which event this is.