floatinghotpot / cordova-plugin-chartboost

Cordova plugin for Chartboost Ads
MIT License
2 stars 0 forks source link

ad is not displaying #1

Open abdulmaalik opened 8 years ago

abdulmaalik commented 8 years ago

issue1 i have installed this plugin and it is integrated successfully but chartboost ad is not displaying kindly help me to resolve my issue.currently i am doing this for android

var adunits = {}; if( /(android)/i.test(navigator.userAgent) ) { adunits = { // for Android appId: '564c14ed88380932ef4cb231', appKey: '88db10ed2513f9dbcf32d00180b4022b25c54441' }; alert("add units"); } else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) { adunits = { // for iOS appId: '564c14ed88380932ef4cb231', appKey: '88db10ed2513f9dbcf32d00180b4022b25c54441' }; } else { alert('windows phone not supported'); } if (! Chartboost ) { alert( 'Chartboost plugin not ready' ); return; }

        Chartboost.setOptions( {
                 appId: adunits.appId,
                 appKey: adunits.appKey
        } );

if(Chartboost) { Chartboost.prepareInterstitial( { adId: 'interstitial/Home Screen', autoShow: true } );

alert("android");
}