Do I need to call ads.init() each time I want to show an ad ?

Hi.

I have a game with a lot of .lua files. 140. Now that I want to add ads before the release. I want the ads to show up quickly with almost no delay. So I’m thought, can I use ads.init in the main.lua file for once and then call ads.show() in gameover.lua multiple times for each time after the user loose ? 

thanks.

You initialize once, 

You call show when you want to show an ad, and …

For some ad providers you may want/need to load a new ad after showing the current ad, to be ready for the next time around.

Which provider are you using?

HI @roaminggamer,

I want to use applovin (videos),chartboost, and adbuddiez. All in one game.

Ok, so I only need to initialise once for adbuddiez if I want to show normal ads. But, what about applovin ? It’s not obvious in the docs. should I call it once or each time I want to load a video. Pluse, where’s chartboost ? did corona drop it ?

re: Initialization  - No, you only call init once.  

re: Chartboost - Read here: https://github.com/swipeware/CoronaChartboostPlugin

re: Normal ad - What is ‘normal’ in this context?

adbuddiz - I haven’t integrated this into my tool yet, so I can’t give you any hints.

applovin - I’ve found this to be very straightforward to use.  You init once with a single ID (no need for one ID per OS/store).  Then just:

  • applovin.init()
  • applovin.load() - Load initial ad

later, you do this basic sequence:

  • applovin.show()
  • …when ad is done showing… applovin.load()
  • … repeat later

PS - Go to the applovin docs and click on each reference.  You need to read them each.  There is no tutorial as far as I know:

https://docs.coronalabs.com/daily/plugin/applovin/index.html

applovin.init()

applovin.load()

applovin.isLoaded()

applovin.show()

applovin.setUserDetails()

Thanks roaminggaming for the help. regarding chartboost, isn’t there an alternative solution ? I looked up and saw that there’s a plugin by gremlien interactive. But their website isn’t working. So I can’t buy it. any thoughts ?

I would follow the suggestion on the Swipeware git page and email Chartboost.  

That’s the best I can do for you.  Sorry.

You initialize once, 

You call show when you want to show an ad, and …

For some ad providers you may want/need to load a new ad after showing the current ad, to be ready for the next time around.

Which provider are you using?

HI @roaminggamer,

I want to use applovin (videos),chartboost, and adbuddiez. All in one game.

Ok, so I only need to initialise once for adbuddiez if I want to show normal ads. But, what about applovin ? It’s not obvious in the docs. should I call it once or each time I want to load a video. Pluse, where’s chartboost ? did corona drop it ?

re: Initialization  - No, you only call init once.  

re: Chartboost - Read here: https://github.com/swipeware/CoronaChartboostPlugin

re: Normal ad - What is ‘normal’ in this context?

adbuddiz - I haven’t integrated this into my tool yet, so I can’t give you any hints.

applovin - I’ve found this to be very straightforward to use.  You init once with a single ID (no need for one ID per OS/store).  Then just:

  • applovin.init()
  • applovin.load() - Load initial ad

later, you do this basic sequence:

  • applovin.show()
  • …when ad is done showing… applovin.load()
  • … repeat later

PS - Go to the applovin docs and click on each reference.  You need to read them each.  There is no tutorial as far as I know:

https://docs.coronalabs.com/daily/plugin/applovin/index.html

applovin.init()

applovin.load()

applovin.isLoaded()

applovin.show()

applovin.setUserDetails()

Thanks roaminggaming for the help. regarding chartboost, isn’t there an alternative solution ? I looked up and saw that there’s a plugin by gremlien interactive. But their website isn’t working. So I can’t buy it. any thoughts ?

I would follow the suggestion on the Swipeware git page and email Chartboost.  

That’s the best I can do for you.  Sorry.