I have added ADMOB_APP_ID to config.xml and also when i am installing the admob free
cordova plugin add cordova-plugin-admob-free --save --variable ADMOB_APP_ID="my id"
Getting admob sucesss in console but i cant see popup and all.
When i am clicking the button of showBanner i can see in chrome inspect that web page not available.
code:
showBanner() {
let bannerConfig: AdMobFreeBannerConfig = {
isTesting: true, // Remove in production
autoShow: true,
// id: ''
};
this.admob.banner.config(bannerConfig);
this.admob.banner.prepare().then(() => {
// success
console.log("admob Success!")
}).catch(e => console.log(e));
}
launchInterstitial() {
let interstitialConfig: AdMobFreeInterstitialConfig = {
isTesting: true, // Remove in production
autoShow: true,
// id: ''
};
this.admob.interstitial.config(interstitialConfig);
this.admob.interstitial.prepare().then(() => {
// success
console.log("admob Success!")
});
Android SDK Tools : 26.1.1 (C:\Users\HP\AppData\Local\Android\Sdk)
NodeJS : v8.14.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
build gradle
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
I have added ADMOB_APP_ID to config.xml and also when i am installing the admob free cordova plugin add cordova-plugin-admob-free --save --variable ADMOB_APP_ID="my id" Getting admob sucesss in console but i cant see popup and all. When i am clicking the button of showBanner i can see in chrome inspect that web page not available.
code:
ionic info :\indraraj\test-ionic\test>ionic info
Ionic:
build gradle
Thank you