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

Interstitial Ads (Google Mobile Ads)

For those reading along at home, you should bounce over to CrisAlb’s other thread on this topic.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

My other thread did not help me. This is why I am making another one. I need help

Didn't you just answer your own question?...


"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."


If you can already make a restart button, just insert the ad code right there.

What do you mean by that? The code for the "Restart" button is in a seperate .swift file though. How would I do that?

Bouncing over to a restricted access area is not possible.

So what are my options? How would I make these ads pop up? I have been having this problem for over a month now and just want to get rid of it. I appreciate all the help I can get.

Ok, nevermind. I got it working. I do have a question though.


I setup an ad-removal view controller where users can remove ads. I have them working fine with banner ads. How do I remove the interstitial ads that pop up after they bought ad-removal?

if (isBought == true){ 
// don't show ad
} else {
// do show ad 
}

What is the code for not showing the ad?

?

I don't know the specifics of your app (no one here does). The sage-like advice here will give you some pointers in the right direction, but no one can write exactly what you need without digging into the project itself. But I get the feeling you're a new programmer, possibly you got ahold of an app template, and you're trying to add some ads to it. If that's the case, I think you need to take a step backwards, and learn some fundamentals of Swift and Sprite Kit (I read your other post asking for Sprite Kit help).

I am not a new programmer nor used an app template. I work from scratch and I know the fundamentals of Swift and Sprite Kit. I just happen to be stuck on this. Can you please help me?

?

Do you know how?

?

Interstitial Ads (Google Mobile Ads)
 
 
Q