1
hello there im im new for anngualrJs and ionic framework。我希望使用angualrJs在離子1項目中每5分鐘發佈一次跨地域廣告。任何身體幫助我。如何使間接廣告在每5分鐘內使用angualr js
我的代碼是
admobid = {};
if(/(android)/i.test(navigator.userAgent)) {
admobid = { // for Android
banner: 'ca-app-pub-2343423432432423/324324324324',
interstitial: 'ca-app-pub-2343423432432423/324324324324'
};
} else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
admobid = { // for iOS
banner: 'ca-app-pub-2343423432432423/324324324324',
interstitial: 'ca-app-pub-2343423432432423/324324324324'
};
} else {
admobid = { // for Windows Phone
banner: 'ca-app-pub-2343423432432423/324324324324',
interstitial: 'ca-app-pub-2343423432432423/324324324324'
};
}
if(window.AdMob) AdMob.createBanner({
adId:admobid.banner,
isTesting:false,
position:AdMob.AD_POSITION.BOTTOM_CENTER,
autoShow:true});
if(Window.AdMob) AdMob.prepareInterstitial({
adId:admobid.interstitial,
isTesting:false,
autoShow:false
});
});
我不知道在哪裏添加對interstatial廣告來的代碼中每5分鐘
謝謝!