Stay organized with collections
Save and categorize content based on your preferences.
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.
Action
Raised when a click is recorded for an ad.
Action
Raised when the ad closed full-screen content.
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.
Raised when the ad is estimated to have earned money.
long
A long integer provided by the AdMob UI for the configured placement.
bool
Verify if an ad is preloaded and available to show.
void
Loads an app open ad.
Returns the next pre-loaded app open ad and null if no ad is available.
bool
Returns true if the ad is loaded and not shown.
string
Returns the ad unit ID.
Returns the ad request response info.
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.
Parameters
adUnitId
The ad Unit Id of the ad to verify.
PollAd
AppOpenAd
PollAd
(
string
adUnitId
)
Returns the next pre-loaded app open 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.
GetAdUnitID
string
GetAdUnitID
()
GetResponseInfo
ResponseInfo
GetResponseInfo
()
Returns the ad request response info.
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\u003eApp open ads are a format that displays when users first launch your app, offering an opportunity for branding.\u003c/p\u003e\n"],["\u003cp\u003eThese ads provide various events such as OnAdClicked, OnAdFullScreenContentClosed, OnAdFullScreenContentFailed, etc., for tracking ad interactions.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize functions like Load, CanShowAd, Destroy, and Show to manage app open ads within their apps.\u003c/p\u003e\n"],["\u003cp\u003eGoogle's \u003ccode\u003eGoogleMobileAds.Api.AppOpenAd\u003c/code\u003e class facilitates integration and control over these ads, including loading, displaying, and handling ad events.\u003c/p\u003e\n"]]],["App open ads are displayed upon app launch, offering branding context. Key actions include: `Load` to load ads, `IsAdAvailable` to check for preloaded ads, `PollAd` to retrieve pre-loaded ads, and `Show` to display them. `CanShowAd` verifies if an ad is ready, and `Destroy` removes it. Events like `OnAdClicked`, `OnAdFullScreenContentClosed`, `OnAdFullScreenContentFailed`, `OnAdFullScreenContentOpened`, `OnAdImpressionRecorded`, and `OnAdPaid` signal ad interactions and earnings. `GetAdUnitID` and `GetResponseInfo` retrieve ad details.\n"],null,[]]