Class RewardedAdEventListener.SimpleRewardedAdEventListener

com.yandex.mobile.ads.rewarded

java.lang.Object ⇽ RewardedAdEventListener ⇽ RewardedAdEventListener.SimpleRewardedAdEventListener

public class RewardedAdEventListener.SimpleRewardedAdEventListener extends RewardedAdEventListener

Enclosing Class:
RewardedAdEventListener

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

Methods

void onAdClosed()

Called when the in-app browser is closed.

void onAdDismissed()

Called when a rewarded ad is closed.

void onAdFailedToLoad(final AdRequestError error)

Called when loading a rewarded ad failed with an error.

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 a rewarded ad is loaded.

void onAdOpened()

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

void onAdShown()

Called when a rewarded ad is served.

void onRewarded(@NonNull final Reward reward)

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

Method Detail

onAdClosed

public void onAdClosed ()

Called when the in-app browser is closed.

onAdDismissed

public void onAdDismissed ()

Called when a rewarded ad is closed.

onAdFailedToLoad

public 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 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 a rewarded ad is loaded.

onAdOpened

public void onAdOpened ()

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

onAdShown

public void onAdShown ()

Called when a rewarded ad is served.

onRewarded

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