Jump to content

is it someone who success to implement charboost video reward with phaser and cocoon ?


espace
 Share

Recommended Posts

hi,

since 10 days i'm searching to do show video reward with cocoon and phaser. i have include cordova.js in my index.html and my previous code works with admob and mopub (interstial and banner) but charboost (videos) not .

This snippet is the last version, i see the alert dialogs but no videos are playing ! 

 

	var chartboost_rewardvideo=function(){
		alert("charboost")
		this.chartboostVideo = Cocoon.Ad.Chartboost;
		this.chartboostVideo.configure({
				android: {
			appId:"50ae12d715ba47c00d01000c",
			appSignature:"95fb313c08717042903819d76f65d64d2347ac44"
				}
		});
		this.rewardedVideo=this.chartboostVideo.createRewardedVideo();
		this.rewardedVideo.on("reward", function(reward){
			// give the player their reward here.
		});
		this.rewardedVideo.load();
		alert("load")
		this.rewardedVideo.show(); 
		alert("show")
	}

please could you help me ?

 

i try also wtih this example but nothing happens >>> no video

https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/basic/index.html

Link to comment
Share on other sites

i have this error with adb log :

05-31 13:38:56.239  9005  9005 W System.err: java.lang.Exception: SDK Initialization error. SDK seems to be not     initialized properly, check for any integration issues
05-31 13:38:56.240  9005  9005 W System.err: 	at com.chartboost.sdk.c.t(SourceFile:488)
05-31 13:38:56.240  9005  9005 W System.err: 	at com.chartboost.sdk.c.r(SourceFile:430)
05-31 13:38:56.240  9005  9005 W System.err: 	at com.chartboost.sdk.Chartboost.cacheRewardedVideo(SourceFile:758)
05-31 13:38:56.240  9005  9005 W System.err: 	at com.ludei.ads.chartboost.AdInterstitialChartboost.loadAd(AdInterstitialChartboost.java:23)
05-31 13:38:56.240  9005  9005 W System.err: 	at com.ludei.ads.cordova.AdServicePlugin.loadInterstitial(AdServicePlugin.java:237)
05-31 13:38:56.240  9005  9005 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
05-31 13:38:56.240  9005  9005 W System.err: 	at com.ludei.ads.cordova.AdServicePlugin$1.run(AdServicePlugin.java:56)
05-31 13:38:56.240  9005  9005 W System.err: 	at android.os.Handler.handleCallback(Handler.java:743)
05-31 13:38:56.240  9005  9005 W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:95)
05-31 13:38:56.240  9005  9005 W System.err: 	at android.os.Looper.loop(Looper.java:150)
05-31 13:38:56.240  9005  9005 W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:5546)
05-31 13:38:56.240  9005  9005 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
05-31 13:38:56.240  9005  9005

I must say that my appid and appsignature (chartboost) are correct.

it's taken from chartboost 's personal page.
On the net i have find that's a problem of permissions to the storage....how do you specify that with cocoon ?
In the config.xml ? doc ?

Thanks for yours answers.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...