{ "id": "172754", "key": "AC-6066", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-12-17T21:35:50.000+0000", "created": "2018-12-14T19:25:26.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-12-17T21:35:50.000+0000", "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" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "Running the sample app for the ti.admob module for Titanium, I am unable to get any Admob ads served using existing Ad IDs or using the test Ad ID Placements of\r\n\r\nBanner: ca-app-pub-3940256099942544/2934735716\r\n Interstitial: ca-app-pub-3940256099942544/4411468910\r\n\r\nHere is the iOS code I'm using to test.\r\n\r\nvar Admob = require('ti.admob');\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n orientationModes: [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\n/*\r\n We'll make two ads. This first one doesn't care about where the user is located.\r\n */\r\nvar ad1 = Admob.createView({\r\n width: 320, // Will calculate the width internally to fit its container if not specified\r\n height: 50,\r\n bottom: 0,\r\n debugEnabled: false, // If enabled, a dummy value for `adUnitId` will be used to test\r\n adType: Admob.AD_TYPE_BANNER,\r\n adUnitId: 'ca-app-pub-3940256099942544/2934735716', // You can get your own at http: //www.admob.com/\r\n adBackgroundColor: 'black'\r\n});\r\nwin.add(ad1);\r\n\r\nad1.addEventListener('didReceiveAd', function(e) {\r\n Ti.API.info('Did receive ad: ' + e.adUnitId + '!');\r\n});\r\nad1.addEventListener('didFailToReceiveAd', function(e) {\r\n Ti.API.error('Failed to receive ad: ' + e.error);\r\n});\r\nad1.addEventListener('willPresentScreen', function() {\r\n Ti.API.info('Presenting screen!');\r\n});\r\nad1.addEventListener('willDismissScreen', function() {\r\n Ti.API.info('Dismissing screen!');\r\n});\r\nad1.addEventListener('didDismissScreen', function() {\r\n Ti.API.info('Dismissed screen!');\r\n});\r\nad1.addEventListener('willLeaveApplication', function() {\r\n Ti.API.info('Leaving the app!');\r\n});\r\nad1.addEventListener('didReceiveInAppPurchase', function(e) {\r\n Ti.API.info('Did receive an In-App purchase: ' + e.productId + '!');\r\n Ti.API.info(e);\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Show interstitial'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n var ad2 = Admob.createView({\r\n debugEnabled: false, // If enabled, a dummy value for `adUnitId` will be used to test\r\n adType: Admob.AD_TYPE_INTERSTITIAL,\r\n adUnitId: 'ca-app-pub-3940256099942544/4411468910'\r\n });\r\n ad2.receive();\r\n\r\n ad2.addEventListener('didReceiveAd', function(e) {\r\n Ti.API.info('Did receive ad!');\r\n });\r\n\r\n ad2.addEventListener('didFailToReceiveAd', function(e) {\r\n Ti.API.error('Failed to receive ad: ' + e.error);\r\n });\r\n});\r\n\r\nwin.add(btn);\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'Loading the ads now! ' +\r\n 'Note that there may be a several minute delay ' +\r\n 'if you have not viewed an ad in over 24 hours.',\r\n top: 40,\r\n textAlign: 'center'\r\n}));\r\nwin.open();\r\n\r\n\r\nI receive the following error:\r\n\r\n[ERROR] : Failed to receive ad: Request Error: A network error occurred.", "attachment": [], "flagged": false, "summary": "ti.admob [ERROR] : Failed to receive ad: Request Error: A network error occurred.", "creator": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 7.5.0\r\nAndroid ti.admob 4.4.0\r\niOS ti.admob 2.4.0", "comment": { "comments": [ { "id": "444628", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This error shows when you don't have an internet connection. Make sure you are connected to the internet. Share a full trace log of the issue if you see the issue under internet connection. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-12-15T21:51:03.000+0000", "updated": "2018-12-15T21:51:03.000+0000" }, { "id": "444631", "author": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It turns out I was developing on a network with a Pihole installed which was blocking all DNS queries to Googles Play Services. Whitelisting the dev environment fixed the problem. Thanks for your assistance!", "updateAuthor": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-15T22:03:13.000+0000", "updated": "2018-12-15T22:03:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }