Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Is it possible to use Vungle and Admob at same time?
Started by john.armstrong Aug 18 2015 07:07 AM

6 replies to this topic
[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

john.armstrong

[GLOBAL: userInfoPane.html]
john.armstrong
  • Contributor

  • 132 posts
  • Corona SDK

I have an app where there is a Admob banner ad at the bottom of the menu scene. Then the user goes to a store where they can "watch an ad for credits" that then uses Vungle. Everything works great.. until you go back to the menu scene and it plays another Vungle ad instead of loading the Admob banner.. Any suggestions on how to deactivate Vungle and use Admob again?



[TOPIC: post.html]
#2

bgmadclown

[GLOBAL: userInfoPane.html]
bgmadclown
  • Contributor

  • 706 posts
  • Corona SDK

Yes. You should use ads:setCurrentProvider("vungle") to switch to Vungle and ads:setCurrentProvider("admob") to switch back to AdMob.



[TOPIC: post.html]
#3

john.armstrong

[GLOBAL: userInfoPane.html]
john.armstrong
  • Contributor

  • 132 posts
  • Corona SDK

[TOPIC: post.html]
#4

john.armstrong

[GLOBAL: userInfoPane.html]
john.armstrong
  • Contributor

  • 132 posts
  • Corona SDK

For some reason it is not loading "vungle" :(

 

But it loads "admob" like it's supposed to on the menu screen. Maybe this a bug?



[TOPIC: post.html]
#5

bgmadclown

[GLOBAL: userInfoPane.html]
bgmadclown
  • Contributor

  • 706 posts
  • Corona SDK

Sorry for my late answer. Have you resolved the problem? If not, can you tell me how you require "ads" library and where do you do it? Sample code would be great. Thank you



[TOPIC: post.html]
#6

john.armstrong

[GLOBAL: userInfoPane.html]
john.armstrong
  • Contributor

  • 132 posts
  • Corona SDK

Yes, I found another forum about it. I just made the ad a global and init on both providers in main.. Then just setcurrentprovider in each scene I needed to change. Works like a charm! Thanks for pointing me in the right direction!

[TOPIC: post.html]
#7

bgmadclown

[GLOBAL: userInfoPane.html]
bgmadclown
  • Contributor

  • 706 posts
  • Corona SDK

I was just going to tell you that :)

 

Glad you got it to work. Good luck with your game.




[topic_controls]
[/topic_controls]