AdEventCallback

interface AdEventCallback

Known direct subclasses
AppOpenAdEventCallback

Callback for receiving ad events during the lifecycle of an AppOpenAd.

BannerAdEventCallback

Callback for receiving ad events during the lifecycle of a banner ad.

IconAdEventCallback

Callback for receiving icon ad lifecycle events.

InterstitialAdEventCallback

Callback for receiving ad events during the lifecycle of a Interstitial ad.

NativeAdEventCallback

Callback for receiving native ad lifecycle events.

RewardedAdEventCallback

Callback for receiving ad events during the lifecycle of a RewardedAd.

RewardedInterstitialAdEventCallback

Callback for receiving ad events during the lifecycle of a RewardedInterstitialAd.


Callback for receiving ad lifecycle events.

Summary

Public functions

open Unit

Called when a click is recorded for an ad.

open Unit

Called when the ad dismisses an overlay that it previously showed.

open Unit

Called when the ad fails to show fullscreen content.

open Unit

Called when an impression is recorded for an ad.

open Unit
onAdPaid(value: AdValue)

Called when an ad is estimated to have earned money.

open Unit

Called when an ad opens an overlay that covers the screen, for example an MRAID expanded ad, ad choices overlay, or a full screen ad.

Public functions

onAdClicked

open fun onAdClicked(): Unit

Called when a click is recorded for an ad.

onAdDismissedFullScreenContent

open fun onAdDismissedFullScreenContent(): Unit

Called when the ad dismisses an overlay that it previously showed.

onAdFailedToShowFullScreenContent

open fun onAdFailedToShowFullScreenContent(
    fullScreenContentError: FullScreenContentError
): Unit

Called when the ad fails to show fullscreen content.

onAdImpression

open fun onAdImpression(): Unit

Called when an impression is recorded for an ad.

onAdPaid

open fun onAdPaid(value: AdValue): Unit

Called when an ad is estimated to have earned money.

onAdShowedFullScreenContent

open fun onAdShowedFullScreenContent(): Unit

Called when an ad opens an overlay that covers the screen, for example an MRAID expanded ad, ad choices overlay, or a full screen ad.

Note that launching an external browser or another app will not trigger this API. You may listen to ON_PAUSE lifecycle events in your app instead.