GoogleMobileAds. Api. RewardedAd

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

Summary

Events

Action
Raised when an ad is clicked.
Action
Raised when the ad closed full-screen content.
Action< AdError >
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.
Action< AdValue >
Raised when the ad is estimated to have earned money.

Public static functions

IsAdAvailable (string adUnitId)
bool
Verify if an ad is preloaded and available to show.
Load (string adUnitId, AdRequest request, Action< RewardedAd , LoadAdError > adLoadCallback)
void
Loads a rewarded ad.
PollAd (string adUnitId)
Returns the next pre-loaded rewarded ad and null if no ad is available.

Public functions

bool
Returns true if the ad is loaded and not shown.
Destroy ()
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.
Show (Action< Reward > userRewardEarnedCallback)
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.

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

Load

 void 
  
 Load 
 ( 
  
 string 
  
 adUnitId 
 , 
  
  AdRequest 
 
  
 request 
 , 
  
 Action 
 < 
  
  RewardedAd 
 
 , 
  
  LoadAdError 
 
  
 > 
  
 adLoadCallback 
 ) 

Loads a rewarded ad.

PollAd

  RewardedAd 
 
  
 PollAd 
 ( 
  
 string 
  
 adUnitId 
 ) 

Returns the next pre-loaded rewarded ad and null if no ad is available.

Details
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 
 () 

Returns the ad unit ID.

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.

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

Create a Mobile Website
View Site in Mobile | Classic
Share by: