I’m trying to put ads on my app with cordova-plugin-admobpro. I tried avery single tutorial that I found in the web and the ionic demo https://github.com/jaivehall/admob-ionic-demo, but AdMob is always undefined, I tried with window.AdMob with the same results (“admob plugin not ready”):
if (! window.AdMob ) { alert( 'admob plugin not ready' ); return; }
AdMob.createBanner( {
adId: admobid.banner,
isTesting: true,
//overlap: false,
// offsetTopBar: false,
position: AdMob.AD_POSITION.BOTTOM_CENTER,
bgColor: 'black'
} );