Interstitial Ads (Google Mobile Ads)

Hello,


does anybody know how to make full page ads using GoogleMobileAds? (interstetial ads) For example, having video ads appear at random moments in my game. Perhaps its after the play dies, or hits the "Restart" button. I have banner ads working on the bottom, but I can't seem to figure out full page ads that appear by THEMSELVES. I watched the tutorial but it only shows how to make full pags ads pop up by the click of a button. My goal is to have them popup by themselves at the correct moment of the app. Your help is greatly appreciated.

Thanks,

Julian

?

I get this:

Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.

It's hard to believe you're not new to programming if you can't understand his code.

No one is going to give you a "copy/past" kind of code, not only because that would be a paid job, but really because no one knows what variables names you're using nor anything else.


Now, supposing you have experience programming, let's put his code in layman's terms:

You can create a singleton variable somewhere that holds whereas the current did or did not buy the ads removal iap

2) Make that singleton return a boolean value for example (this is the easiest case, can be an enum or so)

3) Based on that boolean, you show or not an ad


Remark for any non-programmer: There is no code for "not showing" an ad or anything, tha doesn't make sens. If you don't want to show an ad, just don't call the code that shows one.

Simplified, the code should rather look like:

if (singleton.didBuyNoAdsIAP == false) {
  //show the ad
}

// ...
// rest of the code
Interstitial Ads (Google Mobile Ads)
 
 
Q