Callback for receiving ad lifecycle events.
| Properties | |
|---|---|
on
|
Called when a click is recorded for an ad. |
on
|
Called when the ad dismisses an overlay that it previously
showed.
|
on
|
Called when the ad fails to show full-screen content.
|
on
|
Called when an impression is recorded for an ad. |
on
|
Called when an ad is estimated to have earned money.
|
on
|
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)
Optional onAdDismissedFullScreenContent
onAdDismissedFullScreenContent?:
(() => void)
Optional onAdFailedToShowFullScreenContent
onAdFailedToShowFullScreenContent?:
((fullScreenContentError) => void)
Optional onAdImpression
onAdImpression?: (() => void)
Optional onAdPaid
onAdPaid?: ((value) => void)
Optional onAdShowedFullScreenContent
onAdShowedFullScreenContent?:
(() => void)
Launching an external browser or another app won't trigger this API. You can listen to lifecycle pause events in your app instead.