Class RewardedAdEventListener

com.yandex.mobile.ads.rewarded

java.lang.Object ⇽ RewardedAdEventListener

public abstract class RewardedAdEventListener

Direct Known Subclasses:
RewardedAdEventListener.SimpleRewardedAdEventListener

The class defines callback methods for tracking ad lifecycle events of rewarded ads.

Nested Classes

Methods

abstract void onAdClosed()

Called when the in-app browser is closed.

abstract void onAdDismissed()

Called when a rewarded ad is closed.

abstract void onAdFailedToLoad(final AdRequestError error)

Called when loading a rewarded ad failed with an error.

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

abstract void onAdLoaded()

Called when a rewarded ad is loaded.

abstract void onAdOpened()

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

abstract void onAdShown()

Called when a rewarded ad is served.

abstract void onRewarded(@NonNull final Reward reward)

Called when a user should be rewarded for viewing an ad (impression counted).

Method Detail

onAdClosed

public abstract void onAdClosed ()

Called when the in-app browser is closed.

onAdDismissed

public abstract void onAdDismissed ()

Called when a rewarded ad is closed.

onAdFailedToLoad

public abstract void onAdFailedToLoad (final AdRequestError error)

Called when loading a rewarded ad failed with an error.

Parameters:
error

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

onAdLeftApplication

public abstract 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 abstract void onAdLoaded ()

Called when a rewarded ad is loaded.

onAdOpened

public abstract void onAdOpened ()

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

onAdShown

public abstract void onAdShown ()

Called when a rewarded ad is served.

onRewarded

public abstract void onRewarded (@NonNull final Reward reward)

Called when a user should be rewarded for viewing an ad (impression counted).

Parameters:
reward

The user's reward (an object of the Reward class).