Use paragraphs/blank-lines for legibility please. It’s hard to tell where one though/question ends when a post is smooshed together.
(This is a weakness of mine. For whatever reason I’m terrible at groking posts that are all one super-paragraph.)
-
You only call init once.
-
You can in theory show banners and interstitials from the same provider, but I don’t advise this. In my experience you can either have a banner loaded and ready to show or an interstitial.
Trying to have both ready-to-show immediately is troublesome. (This varies by provider they all have their own peculiarities).
In my usage, if I want a banner and interstitial in my app, I use one provider for the banner and another for the interstitial.
-
You initialize in main.lua. You should trigger all of your loads and shows either in the scene event listeners and/or via the ad listener.
-
No, you do not close inMobi, stop it, shut it down, that isn’t how it works.
-
Is this your first time using composer.* If so, you should practice just making basic scenes till you understand the phases, scene changing,etc. thoroughly.
-
Is this your first time using inMobi? If so, you should make a simple test bench w/ith ‘buttons’ that trigger, init, load, show. Then write up a verbose listener that prints out everything that the ad module is doing so you can understand the timing and sequence of things.
-
Are you an experienced professional (doing this as a job) or are you a new game developer?
I ask, because I don’t think new developers should be thinking about monetizing their games. If you are new and don’t do this for the love of it, …
If you’re a professional, you may want to budget a little bit to get someone to lay out some examples to help you train up on: composer.* as well as inmobi.* and any other ad providers you want to use.
- Stoping/Clearing - You can hide either a banner or an interstitial. Typically, you only hide banners. Interstitial are closed by the user/player.