google api 403|{
"error": {
"code": 403,
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.",
"errors": [
{
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.",
"domain": "androidpublisher",
"reason": "projectNotLinked"
}
]
}
}
403 出现这个错时,很可能是新生成的key还没有生效,,可以修改应用,保存一下,就能马上生效了
google api 401|{
"error": {
"code": 401,
"message": "The current user has insufficient permissions to perform the requested operation.",
"errors": [
{
"message": "The current user has insufficient permissions to perform the requested operation.",
"domain": "androidpublisher",
"reason": "permissionDenied"
}
]
}
}
401 解决方法:
创建的service account权限不足,需要增加权限,您必须连接您的API与您的应用程序.您必须访问Google Play发布页面(https://play.google.com/apps/publish),并在“设置” – >“用户帐户”中邀请具有服务帐户电子邮件的用户.权限 – >邀请新用户并授予其“查看财务报告”的权限.
注意(在进行测试验证时常遇到的错误 ):
400: The purchase token does not match the product ID (product_id参数不对,需核对)
401:报的错是说没有访问相应API的权限(没有权限,上面demo的场景)
403:
一:项目没有关联,或者关联到错误的API项目上()
二:Google服务的BUG,可在该应用的商店内,随意增加一个内购或者订阅,看下问题是否消失(新增的内购或者订阅可以删除的。)
404:
一:No application was found for the given package name (包名参数不对,需核对)。
二:The purchase token was not found(token 参数不对,需核对)
————————————————
版权声明:本文为CSDN博主「乐杨俊」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/leyangjun/java/article/details/93501995