InterstitialAdEventCallback

public interface InterstitialAdEventCallback extends AdEventCallback


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

Summary

Public methods

default void

Called when an app event occurs.

Inherited methods

From com.google.android.libraries.ads.mobile.sdk.common.AdEventCallback
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

onAppEvent

default void onAppEvent(@NonNull String name, String data)

Called when an app event occurs.

App events allow JavaScript within an ad to trigger events in the application. The ad can trigger the app event with a name and optional data. It is then up to the application to decide how to handle the event.

This feature is only available for Ad Manager publishers.

Parameters
@NonNull String name

The name of the app event.

String data

Extra data included with the app event. The data can be null.