Ionic 3 - Admob has Error when placing it in APP

Asked

Viewed 115 times

0

When I put Admob in my Ionic application it looks like the picture below: inserir a descrição da imagem aqui

What would be the mistake to n be showing the 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);
  });

}

 }

1 answer

1

Try to put the isTesting: false instead of isTesting: true.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.