Tuesday, 4 September 2018

IONIC 3 - Admob Free not displaying Ads when testing is false

I have a problem with Ionic 3 when trying to display ads with Admob Free plugin. My Ads will only show in test mode (isTesting: true). If I set it to false or comment the line, no Ads ...

This is my code:

showBannerAd(){    
    const bannerConfig: AdMobFreeBannerConfig = {
      id:'BANNER-ID',
      autoShow: true,
      isTesting: false
    }
    this.adMob.banner.config(bannerConfig);
    this.adMob.banner.prepare().then(()=>{      
      //this.adMob.banner.show();
    }).catch(err => console.log(err));         
  }

If I uncomment the line this.adMob.banner.show() to force the ads, only a black unit appears.

I thought it could be related to my project, so I even started a blank project and the results were the same.

Has anyone fixed before? Thanks!!!



from IONIC 3 - Admob Free not displaying Ads when testing is false

No comments:

Post a Comment