MediationRewardedAdCallback

interface MediationRewardedAdCallback : 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 functions

Unit

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

Unit
onAdFailedToShow(errorDescription: String!)

This function is deprecated.

Use onAdFailedToShow instead.

Unit

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

Unit

This function is deprecated.

Use onUserEarnedReward instead.

Unit

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

Unit

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

Inherited functions

From com.google.android.gms.ads.mediation.MediationAdCallback
Unit

Notifies the Google Mobile Ads SDK that the ad closed.

Unit

Notifies the Google Mobile Ads SDK that the ad opened.

Unit

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

Unit

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

Public functions

onAdFailedToShow

fun onAdFailedToShow(adError: AdError): Unit

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

Parameters
adError: AdError

AdError detailing the cause of the failure.

onAdFailedToShow

fun onAdFailedToShow(errorDescription: String!): Unit

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

Parameters
errorDescription: String!

Description for failure reason.

onUserEarnedReward

fun onUserEarnedReward(): Unit

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

onUserEarnedReward

fun onUserEarnedReward(rewardItem: RewardItem!): Unit

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

onVideoComplete

fun onVideoComplete(): Unit

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

onVideoStart

fun onVideoStart(): Unit

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