MediationRewardedAdCallback

public interface MediationRewardedAdCallback extends MediationAdCallback


Rewarded ad callbacks for a mediation adapter to communicate back to the Google Mobile Ads SDK. Mediation adapters must send these callbacks so that they can be forwarded to the publisher.

Summary

Public methods

abstract void

Notifies the Google Mobile Ads SDK that the rewarded ad failed to show.

abstract void
onAdFailedToShow(String errorDescription)

This method is deprecated.

Use onAdFailedToShow instead.

abstract void

Notifies the Google Mobile Ads SDK that the user has earned a reward.

abstract void

This method is deprecated.

Use onUserEarnedReward instead.

abstract void

Notifies the Google Mobile Ads SDK that the rewarded ad finished playing.

abstract void

Notifies the Google Mobile Ads SDK that a rewarded ad started playing.

Inherited methods

From com.google.android.gms.ads.mediation.MediationAdCallback
abstract void

Notifies the Google Mobile Ads SDK that the ad closed.

abstract void

Notifies the Google Mobile Ads SDK that the ad opened.

abstract void

Notifies the Google Mobile Ads SDK that the ad has been clicked.

abstract void

Notifies the Google Mobile Ads SDK that an impression occurred on the ad.

Public methods

onAdFailedToShow

abstract void onAdFailedToShow(@NonNull AdError adError)

Notifies the Google Mobile Ads SDK that the rewarded ad failed to show.

Parameters
@NonNull AdError adError

AdError detailing the cause of the failure.

onAdFailedToShow

abstract void onAdFailedToShow(String errorDescription)

Notifies the Google Mobile Ads SDK that the rewarded ad failed to show.

Parameters
String errorDescription

Description for failure reason.

onUserEarnedReward

abstract void onUserEarnedReward()

Notifies the Google Mobile Ads SDK that the user has earned a reward.

onUserEarnedReward

abstract void onUserEarnedReward(RewardItem rewardItem)

Notifies the Google Mobile Ads SDK that the user has earned a reward.

onVideoComplete

abstract void onVideoComplete()

Notifies the Google Mobile Ads SDK that the rewarded ad finished playing.

onVideoStart

abstract void onVideoStart()

Notifies the Google Mobile Ads SDK that a rewarded ad started playing.