AdMob Interstitial¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Monetization > Advertising | API 21, Android 5.0 Lollipop | 5 |
Overview¶
A component for displaying interstitial advertisements from Google AdMob. Interstitial ads are full-screen ads that cover the interface of their host app. They are typically displayed at natural transition points in the flow of an app, such as between activities or during the pause between levels in a game. To use this component, you must provide a valid Ads App ID (inside Project settings > Monetization > Google Ads App ID) and Ad Unit ID from your AdMob account. It is recommended to use Test Mode during development to avoid generating invalid ad traffic.
Permissions
Commission
Type: Fixed Rate
Value: 10%
Events¶
Ad Clicked¶
Called when the user clicks on the ad.
Ad Dismissed Full Screen Content¶
Called when the ad is closed, and the user is returned to the app.
Ad Failed To Load¶
Called when an ad request fails to load. The error code and message provide more details on the failure.
Params | |
---|---|
error Code | Number |
error Message | Text |
Ad Failed To Show Full Screen Content¶
Called when the ad fails to show in full screen. The error code and message provide more details on the failure.
Params | |
---|---|
error Code | Number |
error Message | Text |
Ad Impression¶
Called when an ad impression has been recorded.
Ad Loaded¶
Called when an ad has been successfully loaded and is ready to be shown.
Ad Showed Full Screen Content¶
Called when the ad is displayed on the screen, covering the app's content.
Methods¶
Load Ad¶
Initiates a request to load a new interstitial ad. This will not do anything if an ad is already loading or if ads are disabled.
Show Interstitial Ad¶
Shows the loaded interstitial ad. This will do nothing if the ad has not been loaded yet.
Properties¶
Ad Enabled¶
Boolean Default: True Read Write - Designer Blocks
Specifies whether ads should be enabled. If set to false, no ads will be loaded or shown.
Ad Unit ID¶
Text Read Write - Designer Blocks
Property for AdUnitID
Test Mode¶
Boolean Default: False Write - Designer
If enabled, test ads will be shown. This should be used during development to avoid generating false impressions. Always enabled when in companion.