# GoogleMobileAds.Api.RewardedAd

Rewarded ads reward users with in-app items for interacting with video ads, playable ads, or surveys.

## Summary

| ### Events ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1aaa3d9059444a12f0d4d9518fd9daa080` | `Action` Raised when an ad is clicked. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1ada1fb139bccb3de7d3109ee83666a405` | `Action` Raised when the ad closed full-screen content. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1abd5571ba949f093b7709c3af9f243326` | `Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/ad-error#class_google_mobile_ads_1_1_api_1_1_ad_error >` Raised when the ad failed to load. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1aa3a28b4f736ef0d9d221777088a68b7a` | `Action` Raised when an ad opened full-screen content. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a5710a3304a2cb55e6bfa57c7f31a026e` | `Action` Raised when an impression is recorded for an ad. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a1cd14f386bae2784e05ba5b7c709db4c` | `Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/ad-value#class_google_mobile_ads_1_1_api_1_1_ad_value >` Raised when the ad is estimated to have earned money. |

| ### Properties ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1aa64c7f7dc44d55184e1a207774ae0e9e` | `long` A long integer provided by the AdMob UI for the configured placement. |

| ### Public static functions ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1abdc57ab04e86ced35593e93b5bc28fd7(string adUnitId)` | `bool` Verify if an ad is preloaded and available to show. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a4412d09f0e6812f55d4c3fbf441a422e(string adUnitId, https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/ad-request#class_google_mobile_ads_1_1_api_1_1_ad_request request, Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad, https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/load-ad-error#class_google_mobile_ads_1_1_api_1_1_load_ad_error > adLoadCallback)` | `void` Loads a rewarded ad. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a94a02b5746a30cc6e21fca5388ce5d53(string adUnitId)` | `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad` Returns the next pre-loaded rewarded ad and null if no ad is available. |

| ### Public functions ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a4cb8b313b25299399b6c9dd278b5944b()` | `bool` Returns true if the ad is loaded and not shown. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a239d50810d01304ae7dfdb60efb86855()` | `void` Destroys the rewarded ad. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a588df3ab82234ff426217dd0b1d97640()` | `string` Returns the ad unit ID. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a6fa1077dce6b27d3ca02a87aeaf44421()` | `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/response-info#class_google_mobile_ads_1_1_api_1_1_response_info` Returns the ad request response info. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a537783d7ac67973a6f951e35df4e862d()` | `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/reward#class_google_mobile_ads_1_1_api_1_1_reward` The reward item for the loaded rewarded ad. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1a1288ae3051b461c76a7b9fa54c51683a(https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/server-side-verification-options#class_google_mobile_ads_1_1_api_1_1_server_side_verification_options options)` | `void` Sets the server-side verification options. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/rewarded-ad#class_google_mobile_ads_1_1_api_1_1_rewarded_ad_1ac5eca5ef17aa66a5e2862b02cc7589ba(Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/reward#class_google_mobile_ads_1_1_api_1_1_reward > userRewardEarnedCallback)` | `void` Shows a rewarded ad. |

## Events

### OnAdClicked

```c#
Action OnAdClicked
```
Raised when an ad is clicked.

### OnAdFullScreenContentClosed

```c#
Action OnAdFullScreenContentClosed
```
Raised when the ad closed full-screen content.

On iOS, this event is only raised when an ad opens an overlay, not when opening a new application such as Safari or the App Store.

### OnAdFullScreenContentFailed

```c#
Action< AdError > OnAdFullScreenContentFailed
```
Raised when the ad failed to load.

### OnAdFullScreenContentOpened

```c#
Action OnAdFullScreenContentOpened
```
Raised when an ad opened full-screen content.

### OnAdImpressionRecorded

```c#
Action OnAdImpressionRecorded
```
Raised when an impression is recorded for an ad.

### OnAdPaid

```c#
Action< AdValue > OnAdPaid
```
Raised when the ad is estimated to have earned money.

## Properties

### PlacementId

```c#
long PlacementId
```
A long integer provided by the AdMob UI for the configured placement.

To ensure this placement ID is included in reporting, set a value before showing the ad.

## Public static functions

### IsAdAvailable

```c#
bool IsAdAvailable(
  string adUnitId
)
```
Verify if an ad is preloaded and available to show.

<br />

Details Parameters `adUnitId` The ad Unit Id of the ad to verify.

### Load

```c#
void Load(
  string adUnitId,
  AdRequest request,
  Action< RewardedAd, LoadAdError > adLoadCallback
)
```
Loads a rewarded ad.

### PollAd

```c#
RewardedAd PollAd(
  string adUnitId
)
```
Returns the next pre-loaded rewarded ad and null if no ad is available.

<br />

Details Parameters `adUnitId` The ad Unit ID of the ad to poll.

## Public functions

### CanShowAd

```c#
bool CanShowAd()
```
Returns true if the ad is loaded and not shown.

### Destroy

```c#
void Destroy()
```
Destroys the rewarded ad.

### GetAdUnitID

```c#
string GetAdUnitID()
```
Returns the ad unit ID.

### GetResponseInfo

```c#
ResponseInfo GetResponseInfo()
```
Returns the ad request response info.

### GetRewardItem

```c#
Reward GetRewardItem()
```
The reward item for the loaded rewarded ad.

### SetServerSideVerificationOptions

```c#
void SetServerSideVerificationOptions(
  ServerSideVerificationOptions options
)
```
Sets the server-side verification options.

### Show

```c#
void Show(
  Action< Reward > userRewardEarnedCallback
)
```
Shows a rewarded ad.

<br />

Details Parameters `userRewardEarnedCallback` An action to be raised when the user earns a reward.