Twitter LogoFacebook Logo
Interstitial Ads
Learn how to use the Google AdMob Blueprint plugin to display interstitial ads.
By: King

Hello, in this tutorial, I'll show you how to display interstitial ads using the Google AdMob Blueprint plugin.

Interstitial ads are full page ads that blocks the screen that the user will need to close the ad to remove it.

Initialize Google Mobile Ads

Before you can start displaying ads, you'll need to initialize Google Mobile Ads using the Initialize Google Mobile Ads node.

Image from Codeible.com

This node will just have to be called once, so you should call it when the app starts.

There are 2 callbacks, Gma Success and Gma Initialization Failed.

Gma Success gets executed when it initialized Google Mobile Ads successfully. You can then use create ads to display on your app.

Gma Initialization Failed gets executed when it fails to initialize Google Mobile Ads.

Creating and Displaying Interstitial Ads

Once Google Mobile Ads is initialized, you can begin creating the Banner Ad.

Call the Create interstital Ad node.

Image from Codeible.com

You can use this test ad unit id for testing, but you should replace it when your app is going to production.

ca-app-pub-3940256099942544/1033173712

Load Ad

When your Interstitial ad is created, all you have to do now is to load it with ads. 

Call the Load Ad node and pass in the Interstitial Ad.

Image from Codeible.com

The Load Ad node has 2 callbacks, Ad Loaded and Ad Load Failed.

Ad Loaded gets executed when an ad is loaded into the banner ad.

Ad Load Failed gets executed when no ads are returned or when an error occurs. This can happen if your AdMob ad is new and needs traffic for more ads to show for your account.

Click and hold on the callback pins and then drag on an empty spot. Select Add Event, then Add Custom Event to create the callback nodes.

Show Interstitial Ads

Interstitial ads are one time used ads. This mean that you will have to go through the cycle again - create, load, and show.

To show the interstitial ad, call the Show Ad node and pass in the Interstitial Ad.

Image from Codeible.com

Sign In