I’m trying to get AdMob working. There are 3 plugins.
- AdMob Free which is not maitained,
- AdMob Plus - tried - not compiling
- AdMob Pro - tried - ads not showing - event test ones
I’ve made clean sidemenu
ionic app.
Then tried AdMob Plus
.
Install commands:
ionic cordova plugin add cordova-admob-plus --variable APP_ID_ANDROID=ca-app-pub-x~x --variable APP_ID_IOS=ca-app-pub-x~x
npm install --save @admob-plus/ionic
And during compilation had this error: https://github.com/admob-plus/admob-plus/issues/136
Then tried AdMob Pro
Install commands:
ionic cordova plugin add cordova-plugin-admobpro --save --variable ADMOB_APP_ID="ca-app-pub-x~x"
npm install @ionic-native/admob-pro
App compiled but test ad is not showing:
this.adMobPro.prepareInterstitial({adId: 'ca-app-pub-x/x', isTesting:true})
.then(() => { this.adMobPro.showInterstitial(); });
Does any one knows how to get AdMob working with ionic@4?