Google Play StoreのコンソールからSettings->API Access
を開き、CREATE NEW PROJECT
をクリックする。
![Screenshot_2018-04-19_19_51_34.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2F87a4d250-be0a-fcaa-131e-e9a8db941361.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=e6a6d15f88fba939bf5d249d45363049)
![Screenshot_2018-04-19_19_52_16.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2F6377534c-52c4-20a2-6cdc-4ffc4f10960d.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=a6fb88c71af010e1f3e4b4d7687b6f4d)
少し待つと以下のような画面が表示されるので、Service AccountのセクションにあるCREATE SERVICE ACCOUNT
ボタンをクリック。Create Service Accountダイアログが開く。
ダイアログ内のGoogle API Console
へのリンクをクリックする。
![Screenshot_2018-04-19_19_53_55.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2F64015203-08fb-f6b9-30f3-b340846ecde6.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=e734474f976e6dca9e1a9215fe9113e3)
Google API Consoleが別画面で開く。画面内のCreate service account
ボタンをクリックする。
![Screenshot_2018-04-19_19_56_16.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2Fe1272bc9-79a8-9559-b8c2-6e038de47258.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=9a4be55e505c1da0eda16c19865d0f8d)
任意のアカウント名を入力し、RoleでService Accounts->Service Account User
を選択する。
![Screenshot_2018-04-19_19_59_58.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2F21de4c1e-19ef-5365-5fbb-40783d86aa3d.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=2e7a8dfb7809ce76a7b561307f6d012f)
Furnish a new private key
にチェックを入れ、Key typeはp12
をチェック。
Google Play Consoleに戻るとService Accountのところに今作ったService Accountが表示されているので、このService AccountにPermissionを付加する。
RoleはデフォルトでRelease manager
になっていて、その他のpermissionもデフォルトでOK.Manage alpha & beta releases
などにチェックが入っていることを確認し、ADD USER
をクリック。
![Screenshot_2018-04-19_20_02_33.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2F1a6c05ec-fb49-adb5-ae72-bfef067d9eda.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=260797f6ceb156aadfda7cd77f30692e)
![Screenshot_2018-04-19_20_46_14.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2F81b290d2-fb2e-659f-239c-a594b9c4b78e.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=049329b3afb1b9cdaa0e9e15a078245f)
以下のように、Service AccountがDeveloper accountに追加される。
![Screenshot_2018-04-19_20_04_19.png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F469%2Fa517ea3f-6f33-097c-55fa-5fb91b9d95ad.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=fc2c958107c29361d5e454f6b5f39137)
これでService AccountでGoogle Play Developer APIを使う準備は完了。