Chartboost ads not showing anyone please help


#1

I integrated Chartboost native Ads for Android version 1.0.7 in my game ads both interstitial and rewarded video are not showing. below following was i used in my game.

var interstitial;
var rewardedVideo;
function initiateChartboost() {
Cocoon.Ad.Chartboost({
android: {
appId: “xxxxxxx”,
appSignature: “xxxxxxx”,
personalizedAdsConsent: false,
}
});
interstitial = Cocoon.Ad.Chartboost.createInterstitial();
rewardedVideo = Cocoon.Ad.Chartboost.createRewardedVideo();
interstitial.on(“load”, function () {

});
interstitial.on("fail", function (error) {

    interstitial.load();
});
interstitial.on("show", function () {

});
interstitial.on("dismiss", function () {

    interstitial.load();
});
interstitial.on("click", function () {

});
interstitial.load();
rewardedVideo.on("load", function () {

});
rewardedVideo.on("fail", function (error) {

    rewardedVideo.load();
});
rewardedVideo.on("show", function () {

});
rewardedVideo.on("dismiss", function () {
    rewardedVideo.load();
});
rewardedVideo.on("reward", function (reward, error) {
    alert('rewardedVideo reward');
    if (!error) {
        
    } else {

    }
});
rewardedVideo.load();

};
document.addEventListener(‘deviceready’, initiateChartboost, false);