{ "id": "174717", "key": "MOD-2582", "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": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2021-02-02T09:47:31.000+0000", "created": "2020-02-11T11:06:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "2020-Q3", "admob", "android", "firebase", "module" ], "versions": [ { "id": "20952", "name": "Release 9.0.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "ssingh", "key": "ssingh", "displayName": "Satinder Pal Singh", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2021-02-03T13:45:37.000+0000", "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" } }, "components": [ { "id": "14509", "name": "Admob" } ], "description": "When running the example in {{ti.admob}} the application crashes. (No error is shown in console).\r\n\r\n*+Test Steps:+*\r\n# Download module from (https://jenkins.appcelerator.org/job/modules/job/ti.admob/job/PR-94/7/artifact/ti.admob-android-5.0.1.zip)\r\n# Copy the the code from the example\r\n# Paste the code into a Titanium application \r\n# Run Titanium application \r\n\r\n*Expected result*\r\nApplication should not crash and run without issues. \r\n\r\n*Actual result*\r\nApplication crashes. ", "attachment": [ { "id": "67782", "filename": "IMG_4626.JPG", "author": { "name": "ssingh", "key": "ssingh", "displayName": "Satinder Pal Singh", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2021-02-02T09:44:31.000+0000", "size": 2732154, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: \"ti.admob\" Example needs updating", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS Catalina: 10.15.1 beta\r\nXcode: 11.3\r\nJava Version: 1.8.0_131\r\nAndroid NDK: 18.1.5063045\r\nNode.js: 10.16.3\r\n\"NPM\":\"4.2.15-1\",\"CLI\":\"7.1.2-7\"\r\nPixel xl (7.1.1) Emulator\r\nSDK Version: 9.0.0.v20200207114311", "closedSprints": [ { "id": 1216, "state": "closed", "name": "2021 Sprint 3", "startDate": "2021-02-01T17:42:00.000Z", "endDate": "2021-02-12T17:42:00.000Z", "completeDate": "2021-02-12T22:01:52.235Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454724", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this issue is happening because the newest AdMob uses Firebase and it wants a {{google-services.json}} which defines the {{google_app_id}}. That is, both a Google App ID and an AdMob App ID are needed. The {{google-services.json}} can be downloaded from the Firebase website once you've configured your app there.\r\n\r\nUnfortunately, Titanium apps do not currently support a {{google-services.json}} file yet. The plan is to add support to Titanium 9.0.1. See: [TIMOB-27745]\r\n\r\nIn the meantime, I think the only solution is to add the below to the app project. We need to verify that the below will work. If so, then update module's \"example\" project and \"README.md\".\r\n{{./platform/android/res/values/values.xml}}\r\n{code:xml}\r\n\r\n\r\n \r\n MY_APP_ID\r\n\r\n{code}\r\n\r\nI suspect the iOS example project might have the same problem too. We need to double check.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-17T22:56:38.000+0000", "updated": "2020-03-17T23:17:29.000+0000" }, { "id": "458130", "author": { "name": "ssingh", "key": "ssingh", "displayName": "Satinder Pal Singh", "active": true, "timeZone": "Asia/Kolkata" }, "body": "After TIMOB-27745 get resolved, I'm able to run the sample app & load an Interstitial Ad as well. !IMG_4626.JPG|thumbnail! \r\n\r\n[INFO] ad received\r\n[INFO] DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:204204100\r\n[INFO] DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 204204100\r\n[WARN] AdEventListener: (main) [0,10313] \"ad_received\" is deprecated. Use \"load\" instead.\r\n[INFO] Interstitial Ad loaded!\r\n\r\n[~smohammed], can we close this defect now.", "updateAuthor": { "name": "ssingh", "key": "ssingh", "displayName": "Satinder Pal Singh", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2021-02-02T09:43:53.000+0000", "updated": "2021-02-02T09:45:06.000+0000" }, { "id": "458146", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-03T13:45:29.000+0000", "updated": "2021-02-03T13:45:29.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }