ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
498 stars 214 forks source link

[ISSUE] Getting Web page not available https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html #335

Closed indraraj26 closed 5 years ago

indraraj26 commented 5 years ago

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!")

  });

ionic info :\indraraj\test-ionic\test>ionic info

Ionic:

ionic (Ionic CLI) : 4.4.0 (C:\Users\HP\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 7.1.2 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 10 other plugins)

System:

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 }

Thank you

indraraj26 commented 5 years ago

Anyway now i can see ads from admob free