Vungle Publisher sdk was not successfully initialzed

I tried adding the vungle sdk but after following all steps from the doc.coronalabs . i am still unable to use this featur . i get an error saying that the sdk was not successfully initialized can anyone help
 
 
 
 local ads = require(“ads)
 
function MyAds.initVungle()
    local function adListener( event )
        if ( event.type == “adStart”  ) then
            if(event.isError) then
                native.showAlert(VUNGLE, event.type … " " … event.response )
            else
                native.showAlert(VUNGLE, VUNGLE … "  ad starting”)
            end
        elseif event.type == “cachedAdAvailable” then 
            native.showAlert( VUNGLE,“showing chache ad”)
        elseif event.type == “adView” then 
            native.showAlert( VUNGLE,“ads time " … event.totalAdSeconds … " time watched” … event.secondsWatched )
        elseif event.type == “adEnd” then 
            if event.wasCallToActionClicked then
                native.showAlert( VUNGLE,“Ad not clicked” )
            else
                native.showAlert( VUNGLE,“ad clicked” )
            end
        end
    end 
    
    ads.init(VUNGLE,VUNGLE_APP_ID,adListener)
–    if  ads.getVersionString() ~= nil then
–        native.showAlert( VUNGLE, ads.getVersionString())
–    end
end

ads.show(“interstitial”)

Can you post your build.settings file?

Rob

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    

    orientation = {

        default = “portrait”,

        supported = { “portrait”, }

    },

    

    plugins =

    {

        [“CoronaProvider.ads.vungle”] =

        {

            publisherId = “com.vungle”,

        },

        

        [“CoronaProvider.analytics.flurry”] =

        {

            publisherId = “com.coronalabs”

        },

        

        [“plugin.google.play.services”] =

        {

            publisherId = “com.coronalabs”

        },

    }, 

}

Is there any more to your error code in your console log?

Rob

I am getting error when i am calling ads.show(“ince…”) function
The error comes on ad start and the event.response is the you can see the attachment
Below.

I tried even with the sample example of vungle that’s on Github the same error.

Can you please copy and paste the exact and complete error from the terminal/console log.

Rob

Actually there was no logs in the adb logcat . Sorry Hey if you want i can attach the entire project in zip file will that do ??

i have attached the code  just change the App ID with any ID i guess TESt_android also works 
after making apk just click on the image it will give you error

When you run the Corona simulator, you get a terminal/command window opend in the background. That’s where the build logs are. I need to see if there are errors there.

Thanks

Rob

yeah but ads are not supported on simulator 

But I’m looking for build errors where we include the Vungle plugin into your build before you install it.

Thanks

Rob

this is what comes when i start /Users/Shared/sdk/platform-tools/adb logcat Corona:v *:s and nothing comes on corona simulator console

 

 

I/Corona  (12162): game Speed ==> 2.1

I/Corona  (12162): game settings RESPONSE:

I/Corona  (12162): settings saved

I/Corona  (12162): Time to refresh promotion data 788246 seconds

I/Corona  (12162): saving promotion settings

I/Corona  (12162): vungle shown

V/Corona  (12710): > Class.forName: network.LuaLoader

V/Corona  (12710): < Class.forName: network.LuaLoader

V/Corona  (12710): Loading via reflection: network.LuaLoader

I/Corona  (12710): Platform: Sparkle V / ARM Neon / 5.1.1 / Mali-400 MP / OpenGL ES 2.0 / 2015.2646

V/Corona  (12710): > Class.forName: plugin.fuse.LuaLoader

V/Corona  (12710): > Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  (12710): < Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  (12710): Loading via reflection: CoronaProvider.licensing.google.LuaLoader

I/Corona  (12710): main

V/Corona  (12710): > Class.forName: CoronaProvider.ads.vungle.LuaLoader

V/Corona  (12710): < Class.forName: CoronaProvider.ads.vungle.LuaLoader

V/Corona  (12710): Loading via reflection: CoronaProvider.ads.vungle.LuaLoader

I/Corona  (12710): listener

Not the adb logcat. I need the log from the terminal/command window that the simulator opens and shows where you are building the .apk file, not where you are running it.

Several people are reporting issues on Vungle at the moment, we are investigating.

Rob

there were no build errors this comes when i am running the apk on device . 

I am not able to figure out the problem . as no proper error is thrown

this is was i get when i build the apk

 

 

26 01:15:22.586: Build: 2015.2646

Sep 26 01:15:22.638: Platform: iPhone / x86_64 / 10.9.5 / Intel Iris OpenGL Engine / 2.1 INTEL-8.28.32 / 2015.2646

Sep 26 01:15:23.827: Loading project from:   ~/Downloads/publisher-sample-corona-master

Sep 26 01:15:23.828: Project sandbox folder: ~/Library/Application Support/Corona Simulator/publisher-sample-corona-master-3D7D2B66A5CA72C99109973DA8B3759B

Sep 26 01:15:24.676: main

Sep 26 01:15:24.687: WARNING: The ‘ads’ provider (vungle) is not available on the simulator

Sep 26 01:15:35.767: Invalid color System, labelColor (warning given only once)

Sep 26 01:16:00.306: CreateDictionary: item.value unexpectedly NULL for item.key ‘customBuildId’

Sep 26 01:17:06.823: Android build succeeded

Can you post your build.settings file?

Rob

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    

    orientation = {

        default = “portrait”,

        supported = { “portrait”, }

    },

    

    plugins =

    {

        [“CoronaProvider.ads.vungle”] =

        {

            publisherId = “com.vungle”,

        },

        

        [“CoronaProvider.analytics.flurry”] =

        {

            publisherId = “com.coronalabs”

        },

        

        [“plugin.google.play.services”] =

        {

            publisherId = “com.coronalabs”

        },

    }, 

}

Is there any more to your error code in your console log?

Rob

I am getting error when i am calling ads.show(“ince…”) function
The error comes on ad start and the event.response is the you can see the attachment
Below.

I tried even with the sample example of vungle that’s on Github the same error.

Can you please copy and paste the exact and complete error from the terminal/console log.

Rob