Help with VUNGLE

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

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

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