{ "id": "166424", "key": "MOD-2327", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-03-05T17:56:25.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [ { "id": "54502", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "159904", "key": "AC-3571", "fields": { "summary": "Ti.Admob : ad not received", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54547", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "166549", "key": "TIMOB-24473", "fields": { "summary": "Android: Update ti.admob for parity with iOS", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T15:12:13.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14509", "name": "Admob" } ], "description": "[INFO] : Ads: Starting ad request.\r\n[WARN] : Ads: There was a problem getting an ad response. ErrorCode: 1\r\n Gogle play services not found", "attachment": [ { "id": "61808", "filename": "admob.png", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T15:38:16.000+0000", "size": 94452, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Ti.Admob - Ad not received on 6.0.2.GA with latest Admob 3.0.1", "creator": { "name": "ishansingh20132012", "key": "ishansingh20132012", "displayName": "Ishan Singh", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "ishansingh20132012", "key": "ishansingh20132012", "displayName": "Ishan Singh", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Android", "comment": { "comments": [ { "id": "409312", "author": { "name": "ishansingh20132012", "key": "ishansingh20132012", "displayName": "Ishan Singh", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi,\r\nPlease provide a proper documentation, as in the latest git repo code doc there is a property called debugEnabled, but in the actual code its checking for property testing in the dict passed from appcelerator. Also \r\nPlease show a working demo for android. For iOs everything works fine\r\n\r\nBelow is the code i am using\r\n\r\nOsx El captain, tisdk 6+ , appc studio version 4.8\r\n\r\n{code:js}\r\nvar Admob = require('ti.admob');\r\n\r\nvar bannerAdd = Admob.createView({\r\n\theight : 50,\r\n\twidth : 320,\r\n\tbottom : 40,\r\n\tdebugEnabled : false,\r\n\tadType : Admob.AD_TYPE_BANNER,\r\n\tadUnitId : 'ca-app-pub-3283366778120745/7674974318',\r\n\tadBackgroundColor : '#7C181C',\r\n\testDevices : ['1CBA2C2A43588EB806AB1E74AD093760'], // You can get your device's id by looking in the console log\r\n\tcontentURL : 'https://www.google.com', // URL string for a webpage whose content matches the app content.\r\n\trequestAgent : 'Titanium Mobile App', // String that identifies the ad request's origin.\r\n\textras : {\r\n\t\t'version' : 1.0,\r\n\t\t'name' : 'App'\r\n\t},\r\n\tpublisherId : 'pub-3283366778120745',\r\n\ttagForChildDirectedTreatment : false, // http:///business.ftc.gov/privacy-and-security/childrens-privacy for more infos\r\n});\r\n\r\nbannerAdd.addEventListener('didReceiveAd', function() {\r\n\tAlloy.Globals.MotivationRadioNameSpace.printLogs('Did receive ad!');\r\n});\r\nbannerAdd.addEventListener('didFailToReceiveAd', function(e) {\r\n\tAlloy.Globals.MotivationRadioNameSpace.printLogs('Failed to receive ad: ' + e.error);\r\n});\r\nbannerAdd.addEventListener('willPresentScreen', function() {\r\n\tAlloy.Globals.MotivationRadioNameSpace.printLogs('Presenting screen!');\r\n});\r\nbannerAdd.addEventListener('willDismissScreen', function() {\r\n\tAlloy.Globals.MotivationRadioNameSpace.printLogs('Dismissing screen!');\r\n});\r\nbannerAdd.addEventListener('didDismissScreen', function() {\r\n\tAlloy.Globals.MotivationRadioNameSpace.printLogs('Dismissed screen!');\r\n});\r\nbannerAdd.addEventListener('willLeaveApplication', function() {\r\n\tAlloy.Globals.MotivationRadioNameSpace.printLogs('Leaving the app!');\r\n});\r\nbannerAdd.addEventListener('didReceiveInAppPurchase', function(e) {\r\n\tAlloy.Globals.MotivationRadioNameSpace.printLogs('Did receive an inApp purchase!');\r\n\tTi.API.warn(e);\r\n});\r\n$.mainWin.addEventListener('click', function(e) {\r\n\tbannerAdd.requestAd();\r\n});\r\n{code}\r\n", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-06T16:54:19.000+0000", "updated": "2017-03-07T18:04:41.000+0000" }, { "id": "410283", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ishansingh2003] Using {{ti.admob 3.0.1}} I'm able to display a test banner using the code below:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow(),\r\n admob = require('ti.admob'),\r\n view = admob.createView({\r\n top: 0,\r\n adBackgroundColor: 'red',\r\n testing: true,\r\n publisherId: 'ca-app-pub-3940256099942544/6300978111'\r\n });\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\n!admob.png|thumbnail!", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T15:39:18.000+0000", "updated": "2017-03-09T15:39:18.000+0000" }, { "id": "410285", "author": { "name": "ishansingh20132012", "key": "ishansingh20132012", "displayName": "Ishan Singh", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi garry, \r\nI downloaded the latest compiled module from github.\r\nSo that was not working. Then I downloaded the code and i saw that there are blunder mistakes in the code. I changed few stuff and it started working. I don't know from where you have your module compiled. If you see the code on github its passing publisherid\r\nIn the setAddUnitId method in native, that's why it was not showing so when i changed it to \r\nAd unit id it started working. Will be committing latest \r\nCode there. If you can have a look that will be great", "updateAuthor": { "name": "ishansingh20132012", "key": "ishansingh20132012", "displayName": "Ishan Singh", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2017-03-09T15:46:16.000+0000", "updated": "2017-03-09T15:46:16.000+0000" }, { "id": "410286", "author": { "name": "ishansingh20132012", "key": "ishansingh20132012", "displayName": "Ishan Singh", "active": true, "timeZone": "Asia/Kolkata" }, "body": "See you too are passing adunitid into publishers id. ", "updateAuthor": { "name": "ishansingh20132012", "key": "ishansingh20132012", "displayName": "Ishan Singh", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2017-03-09T15:55:17.000+0000", "updated": "2017-03-09T15:55:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }