11

我正在尝试使用以下 API 下载 Android 应用程序的评论。 https://developers.google.com/android-publisher/api-ref/reviews

但它需要身份验证。所以我按照上面链接中的说明进行操作。

我能够获得访问令牌。

但我得到以下回复:

{
 "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."
 }
}

我看到其他一些帖子说您必须将其与 Google Play Developer Console 链接。所以我做到了(见下图)。

[ Google Play 控制台,链接项目]

但我仍然收到此错误。请帮忙。

4

2 回答 2

13

最简单的解决方案是在 Google Developer 控制台上创建一个新的应用内产品。任何应用内产品都可以,只需创建一个新产品。我的直觉是,新产品会在 Google 端触发缓存失效,然后刷新权限。是的,疯狂但有效。

于 2019-08-23T15:27:28.140 回答
1

错误说..您的项目ID尚未链接。我看到您有两个项目,一个可以取消链接,一个可以链接。你确定你没有把它们换过来吗?另外,您能说明一下您是如何使用令牌的吗?

于 2017-06-03T11:19:01.937 回答