Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

What is the best place to call init()?
Started by smasherzz Jul 28 2014 05:37 AM

2 replies to this topic
ads vungle abmob corona
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

smasherzz

[GLOBAL: userInfoPane.html]
smasherzz
  • Observer

  • 26 posts
  • Corona SDK

Dear All, 

I am currently calling Vungle's init () function in my main.lua and then I call the show () whenever I want to show the ad. I am wondering if this is optimal or should I call init() in the same scene in which I am calling show()?

 

In case of Admob banner ads I am calling init() and show() both in the main.lua. Is this the best way as well or not?

 

Thanks

emcube

 

 

 



[TOPIC: post.html]
#2

jordyn.chuhaloff

[GLOBAL: userInfoPane.html]
jordyn.chuhaloff
  • Enthusiast

  • 49 posts
  • Enterprise

Hi Emcube, 

 

You should call init as early as possible in main.lua. When you call this, Vungle will begin caching an ad. By the time you call ads.show, you'll have the best chance of having one ready to play!

 

Jordyn

Vungle

Tech Support Engineer



[TOPIC: post.html]
#3

smasherzz

[GLOBAL: userInfoPane.html]
smasherzz
  • Observer

  • 26 posts
  • Corona SDK


[topic_controls]
[/topic_controls]