“消息":“用于调用Google Play开发者API的项目ID尚未在Google Play开发者控制台中链接."
我正在尝试使用以下API下载针对Android Apps的评论. https://developers.google.com/android-publisher/api-ref/评论
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.
我能够获得访问令牌.
但是我得到以下答复:
{
"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开发者控制台关联.所以我做到了(见下图).
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).
[]
但是我仍然收到此错误.请帮忙.
But I am still getting this error. PLEASE help.
最简单的解决方案是仅在Google Developer控制台上创建一个新的应用内商品.任何应用内商品都可以,只需创建一个新产品即可.我的直觉是,新产品会触发Google端的缓存失效,然后刷新权限.是的,疯狂但有效.
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.