Use adMobPro in my app, I use it to show the ad banner, it works, but sometimes it does not show the ad banner until I reboot the phone, then the banner will show correctly , but don’t know when it will not show again, until reboot it again.
The code is like following :
initialAdService(){
if(
this.globalService.runningInAndroid()){
this.admobid = {
banner: ‘ca-app-pub-4448261xxxx’,
interstitial: ‘ca-app-pub-4448261123683963/xxxx’
};
}
if(
this.globalService.runingInIOS()){
this.admobid = {
banner: 'ca-app-pub-4448261123683963/1xxxx',
interstitial: 'ca-app-pub-4448261123683963/xxxxx'
};
}
}
showAdBanner(){
console.log("current banner id is "+this.admobid.banner);
this.adMobPro.createBanner({
adId:this.admobid.banner,
position:this.adMobPro.AD_POSITION.BOTTOM_CENTER,
autoShow:true
}).then(()=>{
console.log(‘paid banner ad prepared’);
}).catch(err=>{
console.log('prepare paid banner ad failed ,err '+JSON.stringify(err));
})
}
Any one can help or has similar issue , thanks.