Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Any way to load a Vungle ad and NOT show it right away?
Started by borderleap Jul 17 2016 05:30 PM

4 replies to this topic
ads vungle
[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

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 390 posts
  • Corona SDK

The documentation seems a bit unclear what happens after init() is called...  it seems as though you have to call show() to load an ad.  I'd like to have a button become available only if the ad is cached and loaded, but can't seem to find any documentation on the right way to load an ad into the background.

 

With AppLovin for iOS this does seem possible, just not Vungle...



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,488 posts
  • Corona SDK

Negative.  AFAIK you cannot manually preload Vungle ads.

 

 

However, the docs for this function say that Vungle preloads.... so you may simply need to verify before trying to show an ad.

 

https://docs.coronalabs.com/daily/plugin/vungle/isAdAvailable.html

 

In my own usage, I simply make sure to initialize/configure the Vungle network long before I first use it.  After that, I rely on it to either preload automatically or load quickly.  

 

This is why, showing launch ads w/ Vungle mostly fails on the first run of an app, but works on subsequent runs.

 

 

-Ed



[TOPIC: post.html]
#3

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 390 posts
  • Corona SDK

Hey Ed, thanks for the help!  That makes sense that it starts to download right away on init...  I can then simply test for isAdAvailable and show the button when one is ready.

 

When one is shown via ads.show(), is another one then loaded and cached?  How often does the plugin download new ads?  

 

Seems like with AppLovin, it's much easier to build a flow where you load one, then test for availability and show it.  When it's closed/hidden, then load another and repeat the process.

 

Nate



[TOPIC: post.html]
#4

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,488 posts
  • Corona SDK

I haven't done a quantified study of the performance characteristics of Vungle.  Also most of my data comes from Vungle in test mode which may behave differently than production mode.  i.e. If I were Vungle I'd deliver one ad in debug mode and use it over and over.

 

Whereas, I do suspect that production mode:

  • caches on init (but not that fast, so beware using Vungle for launch ads if you want an ad on the first App run)
  • requests a new ad after showing an ad. 

 

Tip: Even though AppLovin is easier to work with than Vungle (I agree wholeheartedly)  it's all about $.  (No I don't know how they compare today, or even in recent history.)



[TOPIC: post.html]
#5

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 390 posts
  • Corona SDK

Good points...  thanks Ed.  From what I've found out it seems as though the Vungle plugin is getting new ads when it needs.  I've got AppLovin also so if one fails, the other one should be there.  Thanks for your help.




[topic_controls]
[/topic_controls]