{"action":"created","issue":{"url":"https://api.github.com/repos/appfeel/admob-google-cordova/issues/11","labels_url":"https://api.github.com/repos/appfeel/admob-google-cordova/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/appfeel/admob-google-cordova/issues/11/comments","events_url":"https://api.github.com/repos/appfeel/admob-google-cordova/issues/11/events","html_url":"https://github.com/appfeel/admob-google-cordova/issues/11","id":65537060,"number":11,"title":"no test ads","user":{"login":"replayshot","id":968902,"avatar_url":"https://avatars.githubusercontent.com/u/968902?v=3","gravatar_id":"","url":"https://api.github.com/users/replayshot","html_url":"https://github.com/replayshot","followers_url":"https://api.github.com/users/replayshot/followers","following_url":"https://api.github.com/users/replayshot/following{/other_user}","gists_url":"https://api.github.com/users/replayshot/gists{/gist_id}","starred_url":"https://api.github.com/users/replayshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/replayshot/subscriptions","organizations_url":"https://api.github.com/users/replayshot/orgs","repos_url":"https://api.github.com/users/replayshot/repos","events_url":"https://api.github.com/users/replayshot/events{/privacy}","received_events_url":"https://api.github.com/users/replayshot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-31T20:21:44Z","updated_at":"2015-04-28T20:37:26Z","closed_at":null,"body":"Hi,\r\n\r\nI am using your sample code for phone gap build and even though I have isTesting: true set, I still see ads in my Android app (only using banner, no interstitial). Also, I don't see any impressions in the admob account (not sure if this is related), I tried using isTesting: false, but that made no difference. I am 100% sure I use the correct pub ID and I waited several days. \r\n\r\nI use phone gap 3.3.0\r\nI call these two methods in my html file\r\napp.startBannerAds();\r\napp.showBannerAds(); (note: when I do not uncomment the JSON error output below I get following alert: \"adview is null, call createBannerView first\", but ads still show up fine)\r\n\r\nPlease do let me know if you need more info.\r\n\r\nThis is my index.js code:\r\n```javascript\r\nvar app = {\r\n  // global vars\r\n  autoShowInterstitial: false,\r\n  progressDialog: document.getElementById(\"progressDialog\"),\r\n  spinner: document.getElementById(\"spinner\"),\r\n  weinre: {\r\n    enabled: false,\r\n    ip: '', // ex. http://192.168.1.13\r\n    port: '', // ex. 9090\r\n    targetApp: '' // ex. see weinre docs\r\n  },\r\n  \r\n  // Application Constructor\r\n  initialize: function () {\r\n    if (( /(ipad|iphone|ipod|android)/i.test(navigator.userAgent) )) {\r\n      document.addEventListener('deviceready', this.onDeviceReady, false);\r\n    } else {\r\n      app.onDeviceReady();\r\n    }\r\n  },\r\n  // Must be called when deviceready is fired so AdMobAds plugin will be ready\r\n  initAds: function () {\r\n    var isAndroid = (/(android)/i.test(navigator.userAgent));\r\n    var adPublisherIds = {\r\n\t   ios : {\r\n        banner: 'ca-app-pub-xxx/xxx',\r\n        interstitial: 'ca-app-pub-xxx/xxx'\r\n      },\r\n      android : {\r\n        banner: 'ca-app-pub-xxx/xxx',\r\n        interstitial: 'ca-app-pub-xxx/xxx'\r\n      }\r\n    };\r\n\r\n    var admobid;\r\n    if (isAndroid) {\r\n      admobid = adPublisherIds.android;\r\n    } else {\r\n      admobid = adPublisherIds.ios;\r\n    }\r\n\r\n    admob.setOptions({\r\n      publisherId: admobid.banner,\r\n      interstitialAdId: admobid.interstitial,\r\n      bannerAtTop: true, // set to true, to put banner at top\r\n      overlap: false, // set to true, to allow banner overlap webview\r\n      offsetStatusBar: true, // set to true to avoid ios7 status bar overlap\r\n      isTesting: true, // receiving test ads (do not test with real ads as your account will be banned)\r\n      autoShowBanner: true, // auto show banners ad when loaded\r\n      autoShowInterstitial: false // auto show interstitials ad when loaded\r\n    });\r\n  },\r\n  // Bind Event Listeners\r\n  bindAdEvents: function () {\r\n    document.addEventListener(\"orientationchange\", this.onOrientationChange, false);\r\n    document.addEventListener(admob.events.onAdLoaded, this.onAdLoaded, false);\r\n    document.addEventListener(admob.events.onAdFailedToLoad, this.onAdFailedToLoad, false);\r\n    document.addEventListener(admob.events.onAdOpened, function (e) {}, false);\r\n    document.addEventListener(admob.events.onAdClosed, function (e) {}, false);\r\n    document.addEventListener(admob.events.onAdLeftApplication, function (e) {}, false);\r\n    document.addEventListener(admob.events.onInAppPurchaseRequested, function (e) {}, false);\r\n  },\r\n  \r\n  // -----------------------------------\r\n  // Events.\r\n  // The scope of 'this' is the event.\r\n  // -----------------------------------\r\n  onOrientationChange: function () {\r\n    app.onResize();\r\n  },\r\n  onDeviceReady: function () {\r\n    var weinre,\r\n        weinreUrl;\r\n    \r\n    document.removeEventListener('deviceready', app.onDeviceReady, false);\r\n    \r\n    if (admob) {\r\n      console.log('Binding ad events...');\r\n      app.bindAdEvents();\r\n      console.log('Initializing ads...');\r\n      app.initAds();\r\n    } else {\r\n      alert('AdMobAds plugin not ready');\r\n    }\r\n  },\r\n  onAdLoaded: function (e) {\r\n    app.showProgress(false);\r\n    if (e.adType === admob.AD_TYPE.INTERSTITIAL) {\r\n      if (app.autoShowInterstitial) {\r\n        admob.showInterstitialAd();\r\n      } else {\r\n        alert(\"Interstitial is available. Click on 'Show Interstitial' to show it.\");\r\n      }\r\n    }\r\n  },\r\n  onAdFailedToLoad: function(e) {\r\n    app.showProgress(false);\r\n    alert(\"Could not load ad: \" + JSON.stringify(e));\r\n  },\r\n  onResize: function () {\r\n    var msg = 'Web view size: ' + window.innerWidth + ' x ' + window.innerHeight;\r\n    document.getElementById('sizeinfo').innerHTML = msg;\r\n  },\r\n  \r\n  // -----------------------------------\r\n  // App buttons functionality\r\n  // -----------------------------------\r\n  startBannerAds: function () {\r\n    app.showProgress(true);\r\n    admob.createBannerView(function (){}, function (e) {\r\n      alert(JSON.stringify(e));\r\n    });\r\n  },\r\n  removeBannerAds: function () {\r\n    app.showProgress(false);\r\n    admob.destroyBannerView();\r\n  },\r\n  showBannerAds: function () {\r\n    app.showProgress(false);\r\n    admob.showBannerAd(true, function (){}, function (e) {\r\n     // alert(JSON.stringify(e));\r\n    });\r\n  },\r\n  hideBannerAds: function () {\r\n    app.showProgress(false);\r\n    admob.showBannerAd(false);\r\n  },\r\n  requestInterstitial: function (autoshow) {\r\n    app.showProgress(true);\r\n    app.autoShowInterstitial = autoshow;\r\n    admob.requestInterstitialAd(function (){}, function (e) {\r\n      alert(JSON.stringify(e));\r\n    });\r\n  },\r\n  showInterstitial: function() {\r\n    app.showProgress(false);\r\n    admob.showInterstitialAd(function (){}, function (e) {\r\n      alert(JSON.stringify(e));\r\n    });\r\n  },\r\n  showProgress: function(show) {\r\n    if (show) {\r\n      addClass(app.spinner, \"animated\");\r\n      removeClass(app.progressDialog, \"hidden\");\r\n    } else {\r\n      addClass(app.progressDialog, \"hidden\");\r\n      removeClass(app.spinner, \"animated\");\r\n    }\r\n  }\r\n};\r\n\r\nfunction removeClass(elem, cls) {\r\n  var str;\r\n  do {\r\n    str = \" \" + elem.className + \" \";\r\n    elem.className = str.replace(\" \" + cls + \" \", \" \").replace(/^\\s+|\\s+$/g, \"\");\r\n  } while (str.match(cls));\r\n}\r\n\r\nfunction addClass(elem, cls) {\r\n  elem.className += (\" \" + cls);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/appfeel/admob-google-cordova/issues/comments/97200356","html_url":"https://github.com/appfeel/admob-google-cordova/issues/11#issuecomment-97200356","issue_url":"https://api.github.com/repos/appfeel/admob-google-cordova/issues/11","id":97200356,"user":{"login":"replayshot","id":968902,"avatar_url":"https://avatars.githubusercontent.com/u/968902?v=3","gravatar_id":"","url":"https://api.github.com/users/replayshot","html_url":"https://github.com/replayshot","followers_url":"https://api.github.com/users/replayshot/followers","following_url":"https://api.github.com/users/replayshot/following{/other_user}","gists_url":"https://api.github.com/users/replayshot/gists{/gist_id}","starred_url":"https://api.github.com/users/replayshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/replayshot/subscriptions","organizations_url":"https://api.github.com/users/replayshot/orgs","repos_url":"https://api.github.com/users/replayshot/repos","events_url":"https://api.github.com/users/replayshot/events{/privacy}","received_events_url":"https://api.github.com/users/replayshot/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T20:37:26Z","updated_at":"2015-04-28T20:37:26Z","body":"thank you. That makes total sense :).  I'll give your suggestion a try and will report what happened."}}