"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
A

2

12

I am trying to use the following API to download reviews for Android Apps. https://developers.google.com/android-publisher/api-ref/reviews

But it requires authentication. So I followed the instructions that were linked in the link above.

I was able to get an access token.

But I get the following response:

{
 "error": {
  "errors": [
   {
    "domain": "androidpublisher",
    "reason": "projectNotLinked",
    "message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
   }
  ],
  "code": 403,
  "message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
 }
}

I saw some other posts saying that you have to link it with the Google Play Developer Console. So I did that (see image below).

[Google Play Console, Linked Project]

But I am still getting this error. PLEASE help.

Ables answered 3/6, 2017 at 10:4 Comment(4)
Did you manage to resolve the issue? I have the same problemOrtego
Possible duplicate of Why getting error 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.'Caryncaryo
I have te same error. I need help!Balmung
Sorry for the late reply. This is not fresh in my mind. But the issue was that the developer account DO NOT allow you download the reviews for Apps that aren't published through your developer account. So you CAN'T download reviews for Apps you have not published yourself. There are some unofficial APIs that can download the reviews but they are limited (won't be able to download all the reviews).Ables
L
14

The simplest solution is to just create a new in app product on the Google Developer console. Any in app product would do, just create a new one. My gut feeling is that the new product triggers a cache invalidation on Google side which then refreshes the permissions. Yes, crazy but effective.

Lawgiver answered 23/8, 2019 at 15:27 Comment(3)
this is indeed the only thing that worked for me after trying everything elseHideaway
Even this step is not working for me. Could someone provide some other troubleshooting steps.Festus
You are my hero 💋Tuberose
C
1

The error says.. your project id has not been linked. I see you have two projects, one you can unlink and one you can link. Are you sure you are not switching them around? Also, can you please show how youre using the token?

Curiel answered 3/6, 2017 at 11:19 Comment(1)
Yes, so I sent a GET request as follows: googleapis.com/androidpublisher/v2/applications/… Yes. I my project is linked, see image... I think that is what I am supposed to it...Ables

© 2022 - 2024 — McMap. All rights reserved.