# MediationRewardedAdCallback

# MediationRewardedAdCallback


```
public interface MediationRewardedAdCallback extends MediationAdCallback
```

<br />

*** ** * ** ***

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` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onAdFailedToShow(com.google.android.gms.ads.AdError)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/AdError adError)` Notifies the Google Mobile Ads SDK that the rewarded ad failed to show. |
| `abstract void` | `[onAdFailedToShow](https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onAdFailedToShow(kotlin.String))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html errorDescription)` **This method is deprecated.** Use MediationRewardedAdCallback.onAdFailedToShow(AdError) instead. |
| `abstract void` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onUserEarnedReward()()` Notifies the Google Mobile Ads SDK that the user has earned a reward. |
| `abstract void` | `[onUserEarnedReward](https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onUserEarnedReward(com.google.android.gms.ads.rewarded.RewardItem))(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/rewarded/RewardItem rewardItem)` **This method is deprecated.** Use onUserEarnedReward() instead |
| `abstract void` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onVideoComplete()()` Notifies the Google Mobile Ads SDK that the rewarded ad finished playing. |
| `abstract void` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onVideoStart()()` Notifies the Google Mobile Ads SDK that a rewarded ad started playing. |

| ### Inherited methods |
|---|
| From [com.google.android.gms.ads.mediation.MediationAdCallback](https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationAdCallback) |---|---| | `abstract void` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationAdCallback#onAdClosed()()` Notifies the Google Mobile Ads SDK that the ad closed. | | `abstract void` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationAdCallback#onAdOpened()()` Notifies the Google Mobile Ads SDK that the ad opened. | | `abstract void` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationAdCallback#reportAdClicked()()` Notifies the Google Mobile Ads SDK that the ad has been clicked. | | `abstract void` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationAdCallback#reportAdImpression()()` 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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/AdError adError` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/AdError` detailing the cause of the failure. |

### onAdFailedToShow

```
abstract void [onAdFailedToShow](https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onAdFailedToShow(kotlin.String))(@NonNull String errorDescription)
```

> [!CAUTION]
> **This method is deprecated.**   
> Use MediationRewardedAdCallback.onAdFailedToShow(AdError) instead.

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

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html errorDescription` | An error message that describes the failure reason. |

### onUserEarnedReward

```
abstract void onUserEarnedReward()
```

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

### onUserEarnedReward

```
abstract void [onUserEarnedReward](https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationRewardedAdCallback#onUserEarnedReward(com.google.android.gms.ads.rewarded.RewardItem))(@NonNull RewardItem rewardItem)
```

> [!CAUTION]
> **This method is deprecated.**   
> Use onUserEarnedReward() instead

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

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/gms/ads/rewarded/RewardItem rewardItem` | contains information about the earned 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.