GoogleMobileAds. Api. AppOpenAd

App open ads are used to display ads when users launch your app.

Summary

Unlike interstitial ads, app open ads make it easy to provide app branding so that users understand the context in which they see the ad.

Events

Action
Raised when a click is recorded for an ad.
Action
Raised when the ad closed full-screen content.
Action< AdError >
Raised when the ad failed to open full-screen content.
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.

Properties

long
A long integer provided by the AdMob UI for the configured placement.

Public static functions

IsAdAvailable (string adUnitId)
bool
Verify if an ad is preloaded and available to show.
Load (string adUnitId, AdRequest request, Action< AppOpenAd , LoadAdError > adLoadCallback)
void
Loads an app open ad.
PollAd (string adUnitId)
Returns the next pre-loaded app open 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 ad.
string
Returns the ad unit ID.
Returns the ad request response info.
Show ()
void
Shows an app open ad.

Events

OnAdClicked

 Action 
  
 OnAdClicked 

Raised when a click is recorded for an ad.

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 open full-screen content.

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.

Properties

PlacementId

 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

 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 
 < 
  
  AppOpenAd 
 
 , 
  
  LoadAdError 
 
  
 > 
  
 adLoadCallback 
 ) 

Loads an app open ad.

PollAd

  AppOpenAd 
 
  
 PollAd 
 ( 
  
 string 
  
 adUnitId 
 ) 

Returns the next pre-loaded app open 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 ad.

GetAdUnitID

 string 
  
 GetAdUnitID 
 () 

Returns the ad unit ID.

GetResponseInfo

  ResponseInfo 
 
  
 GetResponseInfo 
 () 

Returns the ad request response info.

Show

 void 
  
 Show 
 () 

Shows an app open ad.

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