“ message”:“用于调用Google Play开发人员API的项目ID尚未在Google Play开发人员控制台中链接。”

Akl*_*ema 5 google-api google-api-client google-console-developer google-play-developer-api google-developers-console

我正在尝试使用以下API下载针对Android Apps的评论。 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."
 }
}
Run Code Online (Sandbox Code Playgroud)

我看到其他一些帖子说,您必须将其与Google Play开发者控制台关联。所以我做到了(见下图)。

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

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

Gia*_*ini 13

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

  • 在尝试了其他所有方法之后,这确实是唯一对我有用的方法 (3认同)
  • 即使这一步对我来说也不起作用。有人可以提供一些其他故障排除步骤。 (2认同)

小智 1

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