Class AdEventListener.SimpleAdEventListener

com.yandex.mobile.ads

java.lang.Object ⇽ AdEventListener.SimpleAdEventListener

public  class  AdEventListener.SimpleAdEventListener  implements AdEventListener

All Implemented Interfaces:
AdEventListener
Enclosing Interface:
AdEventListener

A stub class that implements all methods of the AdEventListener interface.

Note.

Used when only some of the methods should be tracked.

Methods

void onAdClosed()

Called when the in-app browser is closed.

void onAdFailedToLoad(@NonNull final AdRequestError error)

Called when ad loading fails.

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 onAdLoaded()

Called when the ad is loaded.

void onAdOpened()

Called when an in-app browser opens due to clicking on an ad.

Method Detail

onAdClosed

public void onAdClosed ()

Called when the in-app browser is closed.

onAdFailedToLoad

public void onAdFailedToLoad (@NonNull final AdRequestError error)

Called when ad loading fails.

Parameters:
error

Error. For more information about possible errors, see the AdRequestError class.

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).

onAdLoaded

public void onAdLoaded ()

Called when the ad is loaded.

onAdOpened

public void onAdOpened ()

Called when an in-app browser opens due to clicking on an ad.