Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.
Api.
RewardedAd
Rewarded ads reward users with in-app items for interacting with video ads, playable ads, or surveys.
Summary
Action
Raised when an ad is clicked.
Action
Raised when the ad closed full-screen content.
Raised when the ad failed to load.
Action
Raised when an ad opened full-screen content.
Action
Raised when an impression is recorded for an ad.
Raised when the ad is estimated to have earned money.
bool
Verify if an ad is preloaded and available to show.
void
Loads a rewarded ad.
Returns the next pre-loaded rewarded ad and null if no ad is available.
bool
Returns true if the ad is loaded and not shown.
void
Destroys the rewarded ad.
string
Returns the ad unit ID.
Returns the ad request response info.
The reward item for the loaded rewarded ad.
void
Sets the server-side verification options.
void
Shows a rewarded ad.
Events
OnAdClicked
Action
OnAdClicked
Raised when an ad is clicked.
OnAdFullScreenContentClosed
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
Action
<
AdError
>
OnAdFullScreenContentFailed
Raised when the ad failed to load.
OnAdFullScreenContentOpened
Action
OnAdFullScreenContentOpened
Raised when an ad opened full-screen content.
OnAdImpressionRecorded
Action
OnAdImpressionRecorded
Raised when an impression is recorded for an ad.
OnAdPaid
Action
<
AdValue
>
OnAdPaid
Raised when the ad is estimated to have earned money.
Public static functions
IsAdAvailable
bool
IsAdAvailable
(
string
adUnitId
)
Verify if an ad is preloaded and available to show.
Parameters
adUnitId
The ad Unit Id of the ad to verify.
PollAd
RewardedAd
PollAd
(
string
adUnitId
)
Returns the next pre-loaded rewarded ad and null if no ad is available.
Parameters
adUnitId
The ad Unit ID of the ad to poll.
Public functions
CanShowAd
bool
CanShowAd
()
Returns true if the ad is loaded and not shown.
Destroy
void
Destroy
()
Destroys the rewarded ad.
GetAdUnitID
string
GetAdUnitID
()
GetResponseInfo
ResponseInfo
GetResponseInfo
()
Returns the ad request response info.
GetRewardItem
Reward
GetRewardItem
()
The reward item for the loaded rewarded ad.
SetServerSideVerificationOptions
void
SetServerSideVerificationOptions
(
ServerSideVerificationOptions
options
)
Sets the server-side verification options.
Show
void
Show
(
Action
<
Reward
>
userRewardEarnedCallback
)
Shows a rewarded ad.
Parameters
userRewardEarnedCallback
An action to be raised when the user earns a reward.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eRewarded ads incentivize user engagement with in-app rewards for interacting with various ad formats like video ads, playable ads, or surveys.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGoogleMobileAds.Api.RewardedAd\u003c/code\u003e provides methods to load, display, and manage rewarded ads within your Unity application.\u003c/p\u003e\n"],["\u003cp\u003eYou can implement event listeners to track ad interactions such as clicks, impressions, and reward payouts using this API.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the \u003ccode\u003eReward\u003c/code\u003e and \u003ccode\u003eAdValue\u003c/code\u003e classes for accessing reward details and revenue estimations respectively.\u003c/p\u003e\n"]]],["Rewarded ads allow in-app rewards for user engagement with ads. Key actions include: loading ads via `Load` with an `adUnitId` and `AdRequest`, checking availability with `IsAdAvailable` and `PollAd`, and displaying ads with `Show`. Events notify actions like `OnAdClicked`, `OnAdFullScreenContentOpened`, `OnAdFullScreenContentClosed`, `OnAdPaid`, `OnAdImpressionRecorded`, and `OnAdFullScreenContentFailed`. Additional functions enable checking if ads can be shown, destroying ads, getting ad unit IDs, response info, and setting server-side verification options.\n"],null,[]]