How to use the Vungle listener? Does it work?

What Android device are you testing it on?

I’ve tested mine on a Samsung Galaxy I, and a Google Nexus 7. Both show Vungle ads as expected.

The problem is that maybe you always have ads to show, then is not problem with you. I mean, when I have video ads to show those videos are played it with any problem but when I have not anything to show the cellphone freeze because the video never begins and of course never end. 

I am testing with a Samsung Galaxy S3 with 4.2.2

Since isAdAvailable() is returning TRUE on a device even when there are no ads to be displayed, It sounds like you’re having a similar problem that was reported last month.

I’d recommend getting in touch with Vungle and show them your code.

I will write them…

Exist a way to actualize the vungle plugin?

What do you mean by “actualize”?

Sorry, I mean… “update”

Sorry, but no. The Vungle plugin can only be updated by CoronaLabs / Vungle.

Hi guys, I need some help, I dont know what I am doing wrong…

Here my code:

if ads.isAdAvailable() then

    ads.show( “interstitial”, { isBackButtonEnabled = true } )

else

    showRevmob()RevMob.showFullscreen()    

    

end    

I am tryng to use revmob and vungle at the same time like you see, but when I try to simulate it I have the following error:

"Attempt to call field “isAdAvailable (a nil value)”

I know that the corona simulator cant simulate the ads from vungle but that error must not appear because, off course, when I build for my phone appear a total freeze…

PLEASE somebody help me… What I am doing wrong?

Thank you so much!

Sorry for my (bad) english, is not my first language

It’s a bit difficult to say why you’re phone freezes however it’s important that you initialize both ad networks.

For Vungle you’ll need an “ads.init(…)” and for Revmob you’ll need a “Revmob.startSession(…)” in your code.

The line “showRevmob()RevMob.showFullscreen()” looks weird though.

You only need “RevMob.showFullscreen()”.

If you want to run your app in the simulator without it giving an error you could do something like this:

local isSimulator = (system.getInfo("environment") == "simulator"); if (not isSimulator) and (ads.isAdAvailable()) then ads.show("interstitial"); else RevMob.showFullscreen(); end

I recommend not to have the Vungle show-backbutton logic hardcoded in your app, and instead control that in your Vungle dashboard.

My problem is that “ads.isAdAvailable” always return TRUE for me… and I dont know why, I mean, “ads.isAdAvailable” return me true EVEN when any ad is available to show, that detail freeze mi aplication because the app wait for the end of the video ad and that video never start :/…

This reminds me of a problem that Vungle had about a month ago. From what I know, it was already fixed.

  1. Which Corona build are you using?

  2. Do you see this on Android or iOS?

Hi Ingemar, I am using the last one 1228…Previously I was using the 1202 with the same problem. All this is for Android.

Strange… I just built my app with #1228 and Vungle and the video ads are showing as expected on an Android device…

Tested on Android 2.3.6 (my Nexus 7 battery is dead so I couldn’t test on 4.3).

I’m wondering which version of the Vungle plugin is being used in your app.

Try putting this in your code:

local isSimulator = (system.getInfo("environment") == "simulator"); if (not isSimulator) then print("Vungle version: ", CoronaProvider.ads.vungle.getVersionString()); end

Look at your log and see what’s printed.

I get:

“Vungle version:     1.1.2 (VungleDroid/1.3.1)”

I get this:

1381262_545401832218777_743674608_n.png

Remember all this for Android :confused:

What Android device are you testing it on?

I’ve tested mine on a Samsung Galaxy I, and a Google Nexus 7. Both show Vungle ads as expected.

The problem is that maybe you always have ads to show, then is not problem with you. I mean, when I have video ads to show those videos are played it with any problem but when I have not anything to show the cellphone freeze because the video never begins and of course never end. 

I am testing with a Samsung Galaxy S3 with 4.2.2

Since isAdAvailable() is returning TRUE on a device even when there are no ads to be displayed, It sounds like you’re having a similar problem that was reported last month.

I’d recommend getting in touch with Vungle and show them your code.

I will write them…

Exist a way to actualize the vungle plugin?

What do you mean by “actualize”?

Sorry, I mean… “update”