Impression

data class Impression(val placementId: String, val adInstanceId: String? = null) : AdEvent(source)

An ad impression was recorded.

Constructors

Link copied to clipboard
constructor(placementId: String, adInstanceId: String? = null)

Properties

Link copied to clipboard

For NativeAdPool events only: the NativeAdToken.tokenId of the specific leased ad this impression belongs to, or null if it cannot be resolved (the ad was already released, or this event came from a format with only one ad per controller, where attribution is unambiguous without an id). A NativeAdView bound to a different token must ignore an event whose adInstanceId doesn't match its own — see P1-8: without this, every row on a shared placement received every ad's events.

Link copied to clipboard
open override val placementId: String

The placement that produced this event, or null for global events.