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分钟
谢谢!