I have a basic set up for admob free in Ionic 3 and I can get it to show with isTesting set to true. However when I put an id into bannerConfig it fails and I get an error of plugin_not_installed.
constructor(public navCtrl: NavController, private admobFree: AdMobFree) {
this.showBannerAd();
}
showBannerAd() {
const bannerConfig: AdMobFreeBannerConfig = {
id: 'ca-app-pub-5742208320359495/3836512351',
// isTesting: true,
autoShow: true
}
this.admobFree.banner.config(bannerConfig);
this.admobFree.banner.prepare()
.then((result) => {
// this.admobFree.banner.show()
// banner Ad is ready
// if we set autoShow to false, then we will need to call the show method here
})
.catch(e => alert(e + ' ' + bannerConfig.id));
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.5
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.9.2
Node : v6.11.1
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro