I was working with those docs for most of yesterday, and I even found a few older forum posts that made me realize fairly early that I had been placing my ad code in composer incorrectly, so I worked on fixing that.
I’m planning on starting with a banner ad that stays in place throughout the app’s duration. I’m also planning on adding an interstitial at the start of a specific scene, but I was having so much trouble with the banner loading consistently that I haven’t even worked on that much yet.
I placed almost exactly the example from this (minus the admob.hide) in my main.lua, and it worked perfectly the first time I launched the app. https://docs.coronalabs.com/plugin/admob/hide.html
The banner loaded quickly while I was on the app’s home screen, stayed while I was in-game, and lasted into the high scores page, as intended.
However, as soon as I exited and restarted the app, it never appeared again. I was having similar issues before with my previous implementations where I could get the ads to load but only sporadically (with the interstitial as well).
I have almost no experience working with modules, which is definitely limiting me and especially complicates adding in the interstitial. My game code is fairly small, as the game is relatively simple, but not compartmentalized like that at all.
I’m not positive, but I think the bulk of my issue stems from the fact that I’m not sure when to pre-load my ads and when/ how to implement a continuous check to see if said ads are loaded so that I can show them.
My game is based around the default composer template, with a home scene, game scene, and high scores scene, if that helps. The scenes are transitioned between each other through buttons, except for the game scene, which transitions into the high scores page upon a player’s loss after a brief delay so that they may view their score. I was hoping that that delay period would be a good time to pre-load an interstitial, but I’m not sure how I’d implement that when I need it in a different scene.
Thank you for your time and help.