ionic 3 - AdMob is experiencing an error while placing it in APP

0

When I put AdMob in my ionic application it looks like the picture below:

What would be the mistake to not be showing ads?

Code I use:

displayBanner() {
if (this.platform.is('cordova')) {
const bannerConfig: AdMobFreeBannerConfig = {
  // we will just use a test id for this tutorial
  id: 'ca-app-pub-9249962217154699/5959043893',
  isTesting: true,
  autoShow: true,
  bannerAtTop:true // default is false
};

 this.adMob.banner.config(bannerConfig);

  this.adMob.banner.prepare().then((result)=>{
    console.log(result);
  },(reason)=>{
    console.log(reason);
  });

}

 }
    
asked by anonymous 24.02.2018 / 14:18

1 answer

1

Try to set isTesting: false instead of isTesting: true .

    
04.09.2018 / 15:44