{"_id":"590a04fbed80861900cbc7d5","category":{"_id":"590a04f3ed80861900cbc746","__v":0,"version":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-11-01T18:22:26.112Z","from_sync":false,"order":16,"slug":"deploying-to-google-play","title":"Deploy to Google Play"},"parentDoc":null,"version":{"_id":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","__v":4,"createdAt":"2017-05-03T16:27:30.085Z","releaseDate":"2017-05-03T16:27:30.085Z","categories":["590a04f3ed80861900cbc738","590a04f3ed80861900cbc739","590a04f3ed80861900cbc73a","590a04f3ed80861900cbc73b","590a04f3ed80861900cbc73c","590a04f3ed80861900cbc73d","590a04f3ed80861900cbc73e","590a04f3ed80861900cbc73f","590a04f3ed80861900cbc740","590a04f3ed80861900cbc741","590a04f3ed80861900cbc742","590a04f3ed80861900cbc743","590a04f3ed80861900cbc744","590a04f3ed80861900cbc745","590a04f3ed80861900cbc746","590a04f3ed80861900cbc747","590a04f3ed80861900cbc748","590a04f3ed80861900cbc749","590a04f3ed80861900cbc74a","590a04f3ed80861900cbc74b","590a04f3ed80861900cbc74c","590a04f3ed80861900cbc74d","59124949de13f61900336a7a","5914b04e7c2c552d008b7104","5914b47242c6a22300b9dc20"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.0.0","version":"7"},"user":"55b2d5626862a10d00887af9","project":"55b2d5baa74a380d00e290c4","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-11-01T18:24:21.607Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"To deploy builds to Google Play, the first step is to create a Private Key (.JSON) and setup the appropriate permissions from the Google Play Developer Console.\n\nLets get started!\n\nOpen the [Google Play Developers Console](https://play.google.com/apps/publish), and Log In with your email and password.\n\nNext, select **Settings** from the left menu. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/5fea917-Google_Play_1.jpg\",\n        \"Google Play 1.jpg\",\n        3000,\n        1188,\n        \"#efefee\"\n      ]\n    }\n  ]\n}\n[/block]\nSelect **API access**. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/e50556e-Google_Play_2.jpg\",\n        \"Google Play 2.jpg\",\n        3000,\n        1188,\n        \"#eeedee\"\n      ]\n    }\n  ]\n}\n[/block]\nNext, select **Create Service Account**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/594ad44-Google_Play_3.jpg\",\n        \"Google Play 3.jpg\",\n        3000,\n        1188,\n        \"#ebeaec\"\n      ]\n    }\n  ]\n}\n[/block]\nIn the modal that pops up, select **Google API Console**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/eec185f-Google_Play_4.jpg\",\n        \"Google Play 4.jpg\",\n        3000,\n        1188,\n        \"#f0eff0\"\n      ]\n    }\n  ]\n}\n[/block]\nOn the next page, select the **Create credentials** dropdown, and then **Service account key**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/2cd05c3-Google_Play_5a.jpg\",\n        \"Google Play 5a.jpg\",\n        3000,\n        1188,\n        \"#e9e7e9\"\n      ]\n    }\n  ]\n}\n[/block]\nSelect the **Service account** dropdown and select **New service account**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/05f2bba-Google_Play_6.jpg\",\n        \"Google Play 6.jpg\",\n        3000,\n        1188,\n        \"#f0eff2\"\n      ]\n    }\n  ]\n}\n[/block]\nNext, fIll in the **name** field.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/b8bde68-Google_Play_7aa.jpg\",\n        \"Google Play 7aa.jpg\",\n        3000,\n        1188,\n        \"#f0eff2\"\n      ]\n    }\n  ]\n}\n[/block]\nNext select a role by first highlighting **Project**, then selecting **Owner**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/cd179bb-Google_Play_7a.jpg\",\n        \"Google Play 7a.jpg\",\n        3000,\n        1188,\n        \"#e4e2e5\"\n      ]\n    }\n  ]\n}\n[/block]\nEnsure that **JSON** is selected and click **Create**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/6db02c8-Google_Play_7b.jpg\",\n        \"Google Play 7b.jpg\",\n        3000,\n        1188,\n        \"#e3e0e3\"\n      ]\n    }\n  ]\n}\n[/block]\nNext, a popup will appear letting you know that the Service account has been created.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Note: at this point the JSON file has been downloaded to your computer\",\n  \"body\": \"This will be the JSON file that needs to be uploaded to buddybuild in the next step.\"\n}\n[/block]\nNext, select **Close**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/bf79a66-Google_Play_8.jpg\",\n        \"Google Play 8.jpg\",\n        3000,\n        1188,\n        \"#e4e1e4\"\n      ]\n    }\n  ]\n}\n[/block]\nHead back to the Google Play Developers Console. The page will update with the new service account you created. \n\nScroll down to the **Service Accounts** section, look for the unique Service Account ID, and select **Grant**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/1fd91e4-Google_Play_9.jpg\",\n        \"Google Play 9.jpg\",\n        3000,\n        1188,\n        \"#ededee\"\n      ]\n    }\n  ]\n}\n[/block]\nEnsure that **Release manager** is selected from the role dropdown, then select **Add user**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/edc1b7f-Google_Play_10.jpg\",\n        \"Google Play 10.jpg\",\n        3000,\n        1608,\n        \"#f0f0f0\"\n      ]\n    }\n  ]\n}\n[/block]\nThat's it for step 1! The next step is [setting up buddybuild to automatically deploy to Google Play](doc:deploying-automatically-to-google-play).","excerpt":"","slug":"setting-up-the-google-play-developer-console","type":"basic","title":"Create a private key and setup permissions"}

Create a private key and setup permissions


To deploy builds to Google Play, the first step is to create a Private Key (.JSON) and setup the appropriate permissions from the Google Play Developer Console. Lets get started! Open the [Google Play Developers Console](https://play.google.com/apps/publish), and Log In with your email and password. Next, select **Settings** from the left menu. [block:image] { "images": [ { "image": [ "https://files.readme.io/5fea917-Google_Play_1.jpg", "Google Play 1.jpg", 3000, 1188, "#efefee" ] } ] } [/block] Select **API access**. [block:image] { "images": [ { "image": [ "https://files.readme.io/e50556e-Google_Play_2.jpg", "Google Play 2.jpg", 3000, 1188, "#eeedee" ] } ] } [/block] Next, select **Create Service Account**. [block:image] { "images": [ { "image": [ "https://files.readme.io/594ad44-Google_Play_3.jpg", "Google Play 3.jpg", 3000, 1188, "#ebeaec" ] } ] } [/block] In the modal that pops up, select **Google API Console**. [block:image] { "images": [ { "image": [ "https://files.readme.io/eec185f-Google_Play_4.jpg", "Google Play 4.jpg", 3000, 1188, "#f0eff0" ] } ] } [/block] On the next page, select the **Create credentials** dropdown, and then **Service account key**. [block:image] { "images": [ { "image": [ "https://files.readme.io/2cd05c3-Google_Play_5a.jpg", "Google Play 5a.jpg", 3000, 1188, "#e9e7e9" ] } ] } [/block] Select the **Service account** dropdown and select **New service account**. [block:image] { "images": [ { "image": [ "https://files.readme.io/05f2bba-Google_Play_6.jpg", "Google Play 6.jpg", 3000, 1188, "#f0eff2" ] } ] } [/block] Next, fIll in the **name** field. [block:image] { "images": [ { "image": [ "https://files.readme.io/b8bde68-Google_Play_7aa.jpg", "Google Play 7aa.jpg", 3000, 1188, "#f0eff2" ] } ] } [/block] Next select a role by first highlighting **Project**, then selecting **Owner**. [block:image] { "images": [ { "image": [ "https://files.readme.io/cd179bb-Google_Play_7a.jpg", "Google Play 7a.jpg", 3000, 1188, "#e4e2e5" ] } ] } [/block] Ensure that **JSON** is selected and click **Create**. [block:image] { "images": [ { "image": [ "https://files.readme.io/6db02c8-Google_Play_7b.jpg", "Google Play 7b.jpg", 3000, 1188, "#e3e0e3" ] } ] } [/block] Next, a popup will appear letting you know that the Service account has been created. [block:callout] { "type": "info", "title": "Note: at this point the JSON file has been downloaded to your computer", "body": "This will be the JSON file that needs to be uploaded to buddybuild in the next step." } [/block] Next, select **Close**. [block:image] { "images": [ { "image": [ "https://files.readme.io/bf79a66-Google_Play_8.jpg", "Google Play 8.jpg", 3000, 1188, "#e4e1e4" ] } ] } [/block] Head back to the Google Play Developers Console. The page will update with the new service account you created. Scroll down to the **Service Accounts** section, look for the unique Service Account ID, and select **Grant**. [block:image] { "images": [ { "image": [ "https://files.readme.io/1fd91e4-Google_Play_9.jpg", "Google Play 9.jpg", 3000, 1188, "#ededee" ] } ] } [/block] Ensure that **Release manager** is selected from the role dropdown, then select **Add user**. [block:image] { "images": [ { "image": [ "https://files.readme.io/edc1b7f-Google_Play_10.jpg", "Google Play 10.jpg", 3000, 1608, "#f0f0f0" ] } ] } [/block] That's it for step 1! The next step is [setting up buddybuild to automatically deploy to Google Play](doc:deploying-automatically-to-google-play).