AdEventCallback

public 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 methods

default void

Called when a click is recorded for an ad.

default void

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

default void

Called when the ad fails to show fullscreen content.

default void

Called when an impression is recorded for an ad.

default void

Called when an ad is estimated to have earned money.

default void

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 methods

onAdClicked

default void onAdClicked()

Called when a click is recorded for an ad.

onAdDismissedFullScreenContent

default void onAdDismissedFullScreenContent()

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

onAdFailedToShowFullScreenContent

default void onAdFailedToShowFullScreenContent(
    @NonNull FullScreenContentError fullScreenContentError
)

Called when the ad fails to show fullscreen content.

onAdImpression

default void onAdImpression()

Called when an impression is recorded for an ad.

onAdPaid

default void onAdPaid(@NonNull AdValue value)

Called when an ad is estimated to have earned money.

onAdShowedFullScreenContent

default void onAdShowedFullScreenContent()

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.