Why getting error 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.'

匿名 (未验证) 提交于 2019-12-03 02:13:02

问题:

Why getting error 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.' while accessing google play developer API using service account. Service account email and .p12 file generated using service account option in APIs&Auth -> Credentials. Application in Google Play Developer API linked to project using project id as mentioned in google docs. But still getting this error when try to use the Publishing API. Please give me solution and step by step process to Use Google Publishing API for java client to publish apk using Google Play Developer API and Google Developer API configuration. I am using androidpublisher_v2_public.

回答1:

I understand you. Google confuses you with changing service names and workflows. Their documents aren't updated enough to match their newest API workflows.

I was using the Google Play Developer Service API v2 on the server-side with an alpha-version APK, and had the same error as you: "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."

This is my solution:

Google Developer Console

  1. "Google Developer Console" > "APIs & Auth" subcategory "APIs" > (api list) "Google Play Android Developer API". Set "STATUS" to "ON".

  2. "APIs & auth" subcategory "Credentials" > "Create new Client ID". Choose "Service account" and create the id.

  3. You should get a P12 key from the browser.

Google Play Developer Console

  1. "Google Play Developer Console" > "Settings" > subcategory "API access".

  2. Make a link to your "Linked Project".

  3. "Service Account" place maybe already showing ur "Service account" CLIENT ID which made "google developer console".

Default this account gray showing and isn't active. So must activate and set authority manually.

You should now get a correct response from the API.

Good luck.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!