Error: 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.'
Solution 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
"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.
Solution 2:
Got the same error trying to validate in-app purchases.
This has worked for me:
Go to
Google Play Developer Console > Settings > API Access.
Find your project under "Linked Project" and click "Link" button.
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.
Solution 3:
If you receive this response when making a request to Android Publisher API, but your project is already linked try to create new In-App Product. If there is a product created before linking, it fails on product transaction fetching when making a purchase. With new product, error goes away.
https://dev.to/sandris/androidpublisher--projectnotlinked-error-43c7
Solution 4:
A couple of days ago I've faced the same problem described here with an android publisher v3 and I did all by instruction but unfortunately unsuccessfully.
It may happen when you did link your google cloud console after than your subscriptions/products created and here I'm gonna describe the tricky solution on how to solve this problem without even contacting google.
I've thought that it might be the problem of synchronization and did a couple of steps.
Solution:
- Link your Google Cloud Console account to your Google Play Console if it isn't done yet.
- Then go to your subscriptions/products and try to change something there, for example, the price on a 0.01$ and roll it back.
- Then do it with all the rest subscriptions/products
Finally, check your integration again. I hope everything should get working now :)
Also, I hope #google will fix these issues soon.