public interface

MediationRewardedVideoAdListener

com.google.android.gms.ads.reward.mediation.MediationRewardedVideoAdListener

Class Overview

Callback for an adapter to communicate back to the mediation library. Events must be communicated back for the mediation library to properly manage ad flow.

Summary

Public Methods
abstract void onAdClicked(MediationRewardedVideoAdAdapter adapter)
Called when the ad is clicked.
abstract void onAdClosed(MediationRewardedVideoAdAdapter adapter)
Called when the ad is closed.
abstract void onAdFailedToLoad(MediationRewardedVideoAdAdapter adapter, int errorCode)
Called when the ad fails to load.
abstract void onAdLeftApplication(MediationRewardedVideoAdAdapter adapter)
Called when a rewarded video ad leaves the application (e.g., to go to the browser).
abstract void onAdLoaded(MediationRewardedVideoAdAdapter adapter)
Called when the ad is loaded.
abstract void onAdOpened(MediationRewardedVideoAdAdapter adapter)
Called when user open the ad.
abstract void onInitializationFailed(MediationRewardedVideoAdAdapter adapter, int errorCode)
Called when the SDK fails to initialize.
abstract void onInitializationSucceeded(MediationRewardedVideoAdAdapter adapter)
Called when the SDK is successfully initialized.
abstract void onRewarded(MediationRewardedVideoAdAdapter adapter, RewardItem rewardItem)
Called when the SDK has gather the reward info.
abstract void onVideoStarted(MediationRewardedVideoAdAdapter adapter)
Called when the video start to play.

Public Methods

public abstract void onAdClicked (MediationRewardedVideoAdAdapter adapter)

Called when the ad is clicked.

Parameters
adapter MediationRewardedVideoAdAdapter

public abstract void onAdClosed (MediationRewardedVideoAdAdapter adapter)

Called when the ad is closed.

Parameters
adapter MediationRewardedVideoAdAdapter

public abstract void onAdFailedToLoad (MediationRewardedVideoAdAdapter adapter, int errorCode)

Called when the ad fails to load.

Parameters
adapter MediationRewardedVideoAdAdapter
errorCode int

public abstract void onAdLeftApplication (MediationRewardedVideoAdAdapter adapter)

Called when a rewarded video ad leaves the application (e.g., to go to the browser).

Parameters
adapter MediationRewardedVideoAdAdapter

public abstract void onAdLoaded (MediationRewardedVideoAdAdapter adapter)

Called when the ad is loaded.

Parameters
adapter MediationRewardedVideoAdAdapter

public abstract void onAdOpened (MediationRewardedVideoAdAdapter adapter)

Called when user open the ad.

Parameters
adapter MediationRewardedVideoAdAdapter

public abstract void onInitializationFailed (MediationRewardedVideoAdAdapter adapter, int errorCode)

Called when the SDK fails to initialize.

Parameters
adapter MediationRewardedVideoAdAdapter
errorCode int

public abstract void onInitializationSucceeded (MediationRewardedVideoAdAdapter adapter)

Called when the SDK is successfully initialized.

Parameters
adapter MediationRewardedVideoAdAdapter

public abstract void onRewarded (MediationRewardedVideoAdAdapter adapter, RewardItem rewardItem)

Called when the SDK has gather the reward info. Publisher is responsible for credit the user.

Parameters
adapter MediationRewardedVideoAdAdapter
rewardItem RewardItem

public abstract void onVideoStarted (MediationRewardedVideoAdAdapter adapter)

Called when the video start to play.

Parameters
adapter MediationRewardedVideoAdAdapter