MediationRewardedAdCallback

interface MediationRewardedAdCallback : MediationAdCallback


中介服務轉接程式的獎勵廣告回呼,用來向 Google Mobile Ads SDK 回傳通訊。中介服務轉接程式必須傳送這些回呼,才能轉送給發布商。

摘要

公開函式

Unit

通知 Google Mobile Ads SDK,獎勵廣告無法顯示。

Unit

通知 Google Mobile Ads SDK,使用者已獲得獎勵。

Unit

這個函式已淘汰。

請改用 onUserEarnedReward

Unit

通知 Google Mobile Ads SDK,獎勵廣告已播放完畢。

Unit

通知 Google Mobile Ads SDK,獎勵廣告已開始播放。

繼承函式

來自 com.google.android.gms.ads.mediation.MediationAdCallback
Unit

通知 Google Mobile Ads SDK,廣告已關閉。

Unit

通知 Google Mobile Ads SDK,廣告已開啟。

Unit

通知 Google Mobile Ads SDK,使用者已點按廣告。

Unit

通知 Google Mobile Ads SDK,廣告已產生曝光。

公開函式

onAdFailedToShow

fun onAdFailedToShow(adError: AdError): Unit

通知 Google Mobile Ads SDK,獎勵廣告無法顯示。

參數
adError: AdError

詳述失敗原因的 AdError

onUserEarnedReward

fun onUserEarnedReward(): Unit

通知 Google Mobile Ads SDK,使用者已獲得獎勵。

onUserEarnedReward

fun onUserEarnedReward(rewardItem: RewardItem!): Unit

通知 Google Mobile Ads SDK,使用者已獲得獎勵。

onVideoComplete

fun onVideoComplete(): Unit

通知 Google Mobile Ads SDK,獎勵廣告已播放完畢。

onVideoStart

fun onVideoStart(): Unit

通知 Google Mobile Ads SDK,獎勵廣告已開始播放。