Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Vungle Publisher sdk was not successfully initialzed
Started by akhilhanda14 Sep 25 2015 02:48 PM

14 replies to this topic
vungle error vungle sdk initialized check log
[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

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

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



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

Can you post your build.settings file?

 

Rob



[TOPIC: post.html]
#3

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

-- 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"
        },
    }, 
}
 


[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#5

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

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.

[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#7

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

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 ??

[TOPIC: post.html]
#8

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

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

Attached Files



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

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



[TOPIC: post.html]
#10

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

yeah but ads are not supported on simulator 



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

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

 

Thanks

Rob



[TOPIC: post.html]
#12

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

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



[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

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



[TOPIC: post.html]
#14

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

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



[TOPIC: post.html]
#15

akhilhanda14

[GLOBAL: userInfoPane.html]
akhilhanda14
  • Observer

  • 11 posts
  • Corona SDK

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




[topic_controls]
[/topic_controls]