I am getting the following error while accessing Google Play Developer API using a service account:
The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.
The service account email and .p12
file were generated using the service account option in APIs&Auth -> Credentials
. The Application in the Google Play Developer API was linked to the project using the project id as mentioned in google's docs.
However, I am still getting this error when I try to use the Publishing API. I am looking for a solution to this error and a step by step process to use the Google Publishing API for the Java client to publish an APK using the Google Play Developer API. I am using androidpublisher_v2_public
.
Alternatively, you can also find your Google Play Developer ID in the URL of your browser address bar. In your browser address bar, look for https://play.google.com/console/u/0/developers/<19 Digit ID>/app-list . Copy the set of 19 digits (your Google Play Developer Account ID) after developers/ to your clipboard.
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
"Google Developer Console" > "APIs & Auth" subcategory "APIs" > (api list) "Google Play Android Developer API". Set "STATUS" to "ON".
"APIs & auth" subcategory "Credentials" > "Create new Client ID". Choose "Service account" and create the id.
You should get a P12 key from the browser.
Google Play Developer Console
"Google Play Developer Console" > "Settings" > subcategory "API access".
Make a link to your "Linked Project".
"Service Account" place may be already showing your "Service account" CLIENT ID which made "google developer console".
By default this account is gray indicating that it is not active. So you must activate it and set authority manually.
You should now get a correct response from the API.
If you get the same error again, maybe is because you have configured and purchased products in your console before linking the project.
To solve it, simply add new product in your app.
Good luck.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With