{"action":"created","issue":{"url":"https://api.github.com/repos/floatinghotpot/cordova-admob-pro/issues/478","repository_url":"https://api.github.com/repos/floatinghotpot/cordova-admob-pro","labels_url":"https://api.github.com/repos/floatinghotpot/cordova-admob-pro/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/floatinghotpot/cordova-admob-pro/issues/478/comments","events_url":"https://api.github.com/repos/floatinghotpot/cordova-admob-pro/issues/478/events","html_url":"https://github.com/floatinghotpot/cordova-admob-pro/issues/478","id":187371935,"number":478,"title":"Ad show nothing","user":{"login":"Supamit","id":22996978,"avatar_url":"https://avatars.githubusercontent.com/u/22996978?v=3","gravatar_id":"","url":"https://api.github.com/users/Supamit","html_url":"https://github.com/Supamit","followers_url":"https://api.github.com/users/Supamit/followers","following_url":"https://api.github.com/users/Supamit/following{/other_user}","gists_url":"https://api.github.com/users/Supamit/gists{/gist_id}","starred_url":"https://api.github.com/users/Supamit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Supamit/subscriptions","organizations_url":"https://api.github.com/users/Supamit/orgs","repos_url":"https://api.github.com/users/Supamit/repos","events_url":"https://api.github.com/users/Supamit/events{/privacy}","received_events_url":"https://api.github.com/users/Supamit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T16:00:43Z","updated_at":"2016-11-06T12:52:53Z","closed_at":null,"body":"HI  i use ionic with your instrcution \r\nthis my app.js code\r\n\r\n\r\n//======admob code start=============\r\n \r\n      var admobid = {};\r\n        // select the right Ad Id according to platform\r\n        if( /(android)/i.test(navigator.userAgent) ) { \r\n            admobid = { // for Android\r\n                banner: 'ca-app-pub-9266638043129968/1930313335',\r\n                interstitial: 'ca-app-pub-6869992474017983/1657046752'\r\n            };\r\n           \r\n          } \r\n\r\n\r\n  if(window.AdMob){ \r\n      alert('run');\r\n      AdMob.createBanner( {\r\n      adId:admobid.banner, \r\n      position:AdMob.AD_POSITION.BOTTOM_CENTER, \r\n      autoShow:true} );\r\n    \r\n}\r\n \r\n//=======AdMob Code End=======\r\n\r\nbut when i run to device nothing happen to show  \r\npls help me, thanks. "},"comment":{"url":"https://api.github.com/repos/floatinghotpot/cordova-admob-pro/issues/comments/258679091","html_url":"https://github.com/floatinghotpot/cordova-admob-pro/issues/478#issuecomment-258679091","issue_url":"https://api.github.com/repos/floatinghotpot/cordova-admob-pro/issues/478","id":258679091,"user":{"login":"mjurczyk","id":9549760,"avatar_url":"https://avatars.githubusercontent.com/u/9549760?v=3","gravatar_id":"","url":"https://api.github.com/users/mjurczyk","html_url":"https://github.com/mjurczyk","followers_url":"https://api.github.com/users/mjurczyk/followers","following_url":"https://api.github.com/users/mjurczyk/following{/other_user}","gists_url":"https://api.github.com/users/mjurczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/mjurczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjurczyk/subscriptions","organizations_url":"https://api.github.com/users/mjurczyk/orgs","repos_url":"https://api.github.com/users/mjurczyk/repos","events_url":"https://api.github.com/users/mjurczyk/events{/privacy}","received_events_url":"https://api.github.com/users/mjurczyk/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T12:52:53Z","updated_at":"2016-11-06T12:52:53Z","body":"Temporary fix (for iOS):\r\n\r\n1. Remove `adId` from `createBanner/createInterstitial`, set `isTesting` to *true*. \r\n```js\r\nAdMob.createBanner({\r\n  isTesting: true\r\n});\r\n```\r\n\r\n2. In plugin source files in `CDVAdMobPlugin.m` set:\r\n\r\n```c\r\n#define TEST_BANNER_ID           @\"YOUR_AD_ID\"\r\n```\r\n\r\n3. Go to `__buildAdRequest` in `CDVAdMobPlugin.m` and comment out the following part:\r\n\r\n```c\r\n}\r\nif (\r\n  //NSString* deviceId = [self __getAdMobDeviceId];\r\n  //request.testDevices = [NSArray arrayWithObjects:deviceId, kGADSimulatorID, nil];\r\n  //NSLog(@\"request.testDevices: %@, <Google> tips handled\", deviceId);\r\n}\r\nif(self.mGender) {\r\n```\r\n\r\nThis will allow your own ads to be displayed as \"test\" ads."}}
{"actor":{"display_login":"mjurczyk"}}