Class InterstitialEventListener.SimpleInterstitialEventListener

com.yandex.mobile.ads

java.lang.Object ⇽ InterstitialEventListener.SimpleInterstitialEventListener

public class InterstitialEventListener.SimpleInterstitialEventListener implements InterstitialEventListener

All Implemented Interfaces:
InterstitialEventListener
Enclosing Interface:
InterstitialEventListener

The class defines callback methods for tracking ad lifecycle events.

Methods

void onAdClosed()

Called when the in-app browser is closed.

void onAdLeftApplication()

Called when the app becomes inactive because the user has clicked on an ad and is about to switch to a different app (for example, a browser).

void onAdOpened()

Called when the in-app browser opens in response to a click on an ad.

void onInterstitialDismissed()

Called when an interstitial ad is closed.

void onInterstitialFailedToLoad(final AdRequestError error)

Called when the loading of an interstitial ad fails.

void onInterstitialLoaded()

Called when an interstitial ad is loaded.

void onInterstitialShown()

Called when an interstitial ad is displayed.

Method Detail

onAdClosed

public void onAdClosed ()

Called when the in-app browser is closed.

onAdLeftApplication

public void onAdLeftApplication ()

Called when the app becomes inactive because the user has clicked on an ad and is about to switch to a different app (for example, a browser).

onAdOpened

public void onAdOpened ()

Called when the in-app browser opens in response to a click on an ad.

onInterstitialDismissed

public void onInterstitialDismissed ()

Called when an interstitial ad is closed.

onInterstitialFailedToLoad

public void onInterstitialFailedToLoad (final AdRequestError error)

Called when the loading of an interstitial ad fails.

Parameters:
error

Error description. Errors and their descriptions can be viewed in the AdRequestError class.

onInterstitialLoaded

public void onInterstitialLoaded ()

Called when an interstitial ad is loaded.

onInterstitialShown

public void onInterstitialShown ()

Called when an interstitial ad is displayed.