Interface AdEventCallback

Callback for receiving ad lifecycle events.
Properties
onAdClicked?
Called when a click is recorded for an ad.
onAdDismissedFullScreenContent?
Called when the ad dismisses an overlay that it previously showed.
onAdFailedToShowFullScreenContent?
Called when the ad fails to show full-screen content.
onAdImpression?
Called when an impression is recorded for an ad.
onAdPaid?
Called when an ad is estimated to have earned money.
onAdShowedFullScreenContent?
Called when an ad opens an overlay that covers the screen, for example, an MRAID expanded ad, AdChoices overlay, or a full-screen ad.

Properties


Optional onAdClicked

onAdClicked?: (() => void)
Called when a click is recorded for an ad.

Optional onAdDismissedFullScreenContent

onAdDismissedFullScreenContent?: (() => void)
Called when the ad dismisses an overlay that it previously showed.

Optional onAdFailedToShowFullScreenContent

onAdFailedToShowFullScreenContent?: ((fullScreenContentError) => void)
Called when the ad fails to show full-screen content.

Optional onAdImpression

onAdImpression?: (() => void)
Called when an impression is recorded for an ad.

Optional onAdPaid

onAdPaid?: ((value) => void)
Called when an ad is estimated to have earned money.

Optional onAdShowedFullScreenContent

onAdShowedFullScreenContent?: (() => void)
Called when an ad opens an overlay that covers the screen, for example, an MRAID expanded ad, AdChoices overlay, or a full-screen ad.

Launching an external browser or another app won't trigger this API. You can listen to lifecycle pause events in your app instead.