Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70433

Admob banner ad (even the test ones) not visible in Ionic 4 Android app

$
0
0

@dogdogcatcat wrote:

I am trying to integrate Admob ads with my Ionic 4 (Angular) Android app. So, I installed the plugin by executing the following commands.

cordova plugin add cordova-plugin-admob-free --save --variable ADMOB_APP_ID=<..MY APP ID HERE...>
npm install @ionic-native/admob-free --save

After that, I put the AdmobFree service in the app.module and put the below things in the app.component.ts

 initializeApp() {
    this.platform.ready().then(() => {
      this.statusBar.styleLightContent();
      this.statusBar.backgroundColorByHexString('#4d4d4d');
      this.splashScreen.hide();
    });

    const bannerConfig: AdMobFreeBannerConfig = {
      isTesting: true,
      autoShow: true
    };
    this.admobFree.banner.config(bannerConfig);

    this.admobFree.banner.prepare()
      .then(() => {
      })
      .catch(e => console.log(e));
  }

Then I built the app following Ionic’s documentation. However, the test banner app is not appearing at all in the mobile device. What is possibly going wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>