Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Help with VUNGLE
Started by Jonytexas Jan 30 2015 06:18 AM

1 reply 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

Jonytexas

[GLOBAL: userInfoPane.html]
Jonytexas
  • Contributor

  • 110 posts
  • Corona SDK

good
 
I need help to get my app Vungle implement. I've tried a thousand ways and do not get it ...
 
Someone who could have passed both the test code build.setting as the main.
 
I leave mine:
 
 
===============
BUILD SETTINGS
===============
 
{
   orientation =
   {
     default = "portrait"
     supported =
     {
       "landscapeLeft", "landscapeRight", "portrait", "portraitUpsideDown"
     },
   },
 
   android =
   {
     usesPermissions =
     {
       "android.permission.INTERNET"
       - Optional permission, add it only if you will send the user's geo location
       "android.permission.ACCESS_FINE_LOCATION"
             "android.permission.WRITE_EXTERNAL_STORAGE"
             "android.permission.ACCESS_NETWORK_STATE"
        
     },
   },
  
  
        
         plugins = {
                 - Add Vungle
                 ["CoronaProvider.ads.vungle"] =
                 {
                         publisherId = "com.vungle"
                 },
                 - Add Google Play Services
                 ["plugin.google.play.services"] =
                 {
                         publisherId = "com.coronalabs"
                 },
         },
 
}
 
 
=============
MAIN
=============
 
 
 
- Import for Vungle ads
Local ads = require "ads"
 
- You need to change esta to your App ID
appID = "54cb84b85f852e141f00005b";
 
ads.init ("vungle" appID);
 
_H = Display.contentHeight;
_W = Display.contentWidth;
 
- Function to handle button events
Local mostrarPublicidad function (event)
     if ("ended" == event.phase) then
        ads.show ("interstitial", {isAnimated = false, isBackButtonEnabled = true})
     end
end
 
button = display.newImage ("greenButton.png")
boton.x = _W / 2;
boton.y = _H / 2;
boton.width = 150
boton.height = 100
 
 
 
 
 
button: addEventListener ("touch", mostrarPublicidad)
 
 
 
Someone could help me?
 
a greeting


[TOPIC: post.html]
#2

d.mach

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

  • 880 posts
  • Corona SDK

If you copy and pasted your code there is a comma missing in:

ads.init ("vungle" appID);

 

it should read

ads.init ("vungle", appID);

 

but I guess this isn't your problem because you should get an error for the missing comma. ;)




[topic_controls]
[/topic_controls]