Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to use the Vungle listener? Does it work?
Started by LairdGames Jul 24 2013 04:53 PM

94 replies to this topic
[TOPIC CONTROLS]
« Page 4 of 4 2 3 4
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#76

LairdGames

[GLOBAL: userInfoPane.html]
LairdGames
  • Contributor

  • 969 posts
  • Corona SDK

Excellent news! That really makes me more optimistic. Thanks a lot for sharing this. I cannot wait release an update with those 3 ad networks embedded. Very cool of you to share this info. Mo

[TOPIC: post.html]
#77

sagarpawaskar

[GLOBAL: userInfoPane.html]
sagarpawaskar
  • Enthusiast

  • 33 posts
  • Corona SDK

@ingemar Thanks for the stats! really cool.

@Mo There's no way to leave any of these networks out. Vungle ads are by far the best I've seen. I too sometimes spend time watching vungle just to see whats new.



[TOPIC: post.html]
#78

jhsanchez

[GLOBAL: userInfoPane.html]
jhsanchez
  • Observer

  • 19 posts
  • Corona SDK

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


[TOPIC: post.html]
#79

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

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.



[TOPIC: post.html]
#80

jhsanchez

[GLOBAL: userInfoPane.html]
jhsanchez
  • Observer

  • 19 posts
  • Corona SDK

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 :/...



[TOPIC: post.html]
#81

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

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?



[TOPIC: post.html]
#82

jhsanchez

[GLOBAL: userInfoPane.html]
jhsanchez
  • Observer

  • 19 posts
  • Corona SDK

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



[TOPIC: post.html]
#83

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

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)"



[TOPIC: post.html]
#84

jhsanchez

[GLOBAL: userInfoPane.html]
jhsanchez
  • Observer

  • 19 posts
  • Corona SDK

I get this:

 

1381262_545401832218777_743674608_n.png

 

Remember all this for Android :/



[TOPIC: post.html]
#85

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

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.



[TOPIC: post.html]
#86

jhsanchez

[GLOBAL: userInfoPane.html]
jhsanchez
  • Observer

  • 19 posts
  • Corona SDK

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



[TOPIC: post.html]
#87

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

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.



[TOPIC: post.html]
#88

jhsanchez

[GLOBAL: userInfoPane.html]
jhsanchez
  • Observer

  • 19 posts
  • Corona SDK

I will write them...
 
Exist a way to actualize the vungle plugin?


[TOPIC: post.html]
#89

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

What do you mean by "actualize"?



[TOPIC: post.html]
#90

jhsanchez

[GLOBAL: userInfoPane.html]
jhsanchez
  • Observer

  • 19 posts
  • Corona SDK

Sorry, I mean... "update"



[TOPIC: post.html]
#91

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

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

[TOPIC: post.html]
#92

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 892 posts
  • Corona SDK

how can I make sure with vungle ads that an ad was completed (watched over the full time without being cancelled) in Corona?

I can't find anything on this and just using "adEnd" is not working.



[TOPIC: post.html]
#93

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

In the docs http://docs.coronalabs.com/plugin/vungle/init.html there are some event properties called "totalAdSeconds" and "secondsWatched" which I guess should work in your case. Have you tried those?



[TOPIC: post.html]
#94

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 892 posts
  • Corona SDK

In the docs http://docs.coronalabs.com/plugin/vungle/init.html there are some event properties called "totalAdSeconds" and "secondsWatched" which I guess should work in your case. Have you tried those?

Thx for the info. I haven't tried those. Is there a sample on how to use the "isCompletedView" with a listener?



[TOPIC: post.html]
#95

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

Thx for the info. I haven't tried those. Is there a sample on how to use the "isCompletedView" with a listener?

 

 

Not that I know of, but they should be properties attached to the event that's passed to the listener.




[topic_controls]
« Page 4 of 4 2 3 4
 
[/topic_controls]