admobFree: cordova_not_available

I use this code

    this.admobFree.banner.config(bannerConfig);
    // banner
    this.admobFree.banner.prepare().then(() => {

    }).catch(e => console.log('Error Admob', e));

https://upic.me/i/wg/70untitled.png

cordova_not_available?

Cordova only works on Devices (real or simulator), not on testing in the browser.

1 Like

I run it on the browser Thank you!!

I run it on simulator but not work.

showBanner() {

let bannerConfig: AdMobFreeBannerConfig = {
  isTesting: true, // Remove in production
  autoShow: true,
  id: "XXXXXXXXX"
};

this.admob.banner.config(bannerConfig);

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

}