11
votes

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.

2
Did you manage to resolve the issue? I have the same problemDataGreed
I have te same error. I need help!davidesantangelo
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).Aklas Cheema

2 Answers

12
votes

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.

1
votes

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?