Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Ads not show in an ionic 2 app #76

Open
gitmasta opened this issue Jun 10, 2017 · 3 comments
Open

Ads not show in an ionic 2 app #76

gitmasta opened this issue Jun 10, 2017 · 3 comments
Labels

Comments

@gitmasta
Copy link

Hi,
when i set the testing mode to true, the tests ads are shown. but when i set it off nothing is shown.
can you help me please

@vintage
Copy link
Collaborator

vintage commented Jun 22, 2017

Show us your code.

@francisco-caicedonarvaez

Hi, I am having the same issue, the add works ok when running in emulator. However, it is not working in the published app.

Here is a sample code, could you help please?

    var admobid: AdMobType;
    if (/(android)/i.test(navigator.userAgent)) {
      admobid = { // for Android
        banner: 'ca-app-pub-XXXXXX'
      };
    } else if (/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
      admobid = { // for iOS
        banner: 'ca-app-pub-XXXXXX'
      };
    } else {
      admobid = { // for Windows Phone
        banner: 'ca-app-pub-XXXXX'
      };
    }

    this.admob.createBanner({
      adId: admobid.banner,
      position: this.admob.AD_POSITION.BOTTOM_CENTER,
      overlap:true,
      //isTesting: true,// works on emulator
      autoShow: true
    })

app: https://play.google.com/store/apps/details?id=com.pokethemeerkat

Thank you.

@ratson ratson added the ionic label Nov 20, 2017
@ratson
Copy link
Owner

ratson commented Nov 20, 2017

Please try out the latest version see if it is fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants