espace Posted May 24, 2017 Share Posted May 24, 2017 hi, i would like to integrate charboost videoreward in my app. I success with admob and mopub (interstitial and banner) but with video i don't. i have follow this documentation on cocoon and the example api:https://docs.cocoon.io/article/cocoon-chartboost-plugin/#Rewarded_videos https://github.com/CocoonIO/cocoon-template-ads here is the list of the plugins activated in cocoon: AdMob native Ads for Android cocoon-plugin-ads-android-admob Ios com.ludei.canvasplus.ios Android com.ludei.canvasplus.android 3.2.6 Splashscreen com.peerio.cordova.plugin.splashscreen 1.0.5 Chartboost native Ads for Android cocoon-plugin-ads-android-chartboost 1.0.1 ChartBoost adapter for AdMob Android cocoon-plugin-ads-android-admob-chartboost and finally below my code. I receive no error when i invoke createInterstitial() but the video don't begin (on wifi and 3g): on the cocoon forum no help, it's frustating .... thanks for your help :°) var createInterstitial=function(){ if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i) ){ adService = Cocoon.Ad.Chartboostg) adService.configure({ ios: { appId:"4ed254a3cb5015e47c000000", appSignature:"91858cc162b56414ca47e63ce7a1b20105c70e65" }, android: { appId:"50ae12d715ba47c00d01000c", appSignature:"95fb313c08717042903819d76f65d64d2347ac44" } }); interstitial = adService.createRewardedVideo(); //interstitial = adService.createInterstitial(); interstitial.on("load", function(){ console.log("Interstitial loaded"); }); interstitial.on("fail", function(){ console.log("Interstitial failed"); }); interstitial.on("show", function(){ console.log("Interstitial shown"); }); interstitial.on("dismiss", function(){ console.log("Interstitial dismissed"); }); interstitial.on("click", function(){ alert("click") console.log("Interstitial dismissed"); if(level_number < 19){ this.game.state.start("level"+level_number+1); } }); interstitial.on("reward", function(){ alert("reward") console.log("Interstitial dismissed"); if(level_number < 19){ this.game.state.start("level"+level_number+1); } }); interstitial.load() interstitial.show() } } Quote Link to comment Share on other sites More sharing options...
espace Posted May 26, 2017 Author Share Posted May 26, 2017 Nobody ? Is it the good-subforum for this type of question ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.