AdEvent

interface AdEvent


Event to notify publisher that an event occurred with an Ad.

Summary

Nested types

Listener interface for ad events.

Types of events that can occur during ad playback.

Public functions

Ad!

Returns the ad with which this event is associated.

(Mutable)Map<String!, String!>!

Returns a map containing any extra ad data for the event, if needed.

AdEvent.AdEventType!

Returns the type of event that occurred.

Public functions

getAd

fun getAd(): Ad!

Returns the ad with which this event is associated.

getAdData

fun getAdData(): (Mutable)Map<String!, String!>!

Returns a map containing any extra ad data for the event, if needed.

Note: different event types will fill this map with different contents. For information on how a particular event type uses the ad data, see the documentation for that event type, for example, the documentation for the LOG event specifies its use of ad data.

getType

fun getType(): AdEvent.AdEventType!

Returns the type of event that occurred.