当我在Google开发者控制台中使用Google Play Android开发人员API来测试购买产品的状态时,会发生这种情况,结果总是这样
{
"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."
}
}我已经使用另一个开发人员帐户(和包名)检查过了,它工作得很好。我肯定已经将谷歌开发者控制台的API项目链接到Google Play开发者控制台的-> API访问设置,并尝试重新创建尽可能多的项目,但没有一个项目起作用。
那么我在这里错过了什么呢?除了我在Google Play控制台的设置中设置的链接项目之外,“未链接”是什么意思?
发布于 2018-09-27 23:48:19
如果其他人有同样的问题,请尝试在您的Google Play控制台帐户中添加新产品/订阅。这对我来说很有效,尽管在Google服务中似乎存在一些不一致的问题。
发布于 2014-08-26 11:21:50
几天后,我尝试使用API Explorer来使用Android Publisher API,但失败了,我向Google请求支持,并收到了回答“它看起来API Explorer不再支持发布API”。因此,基本上我不能使用API Explorer再次签入应用程序中的购买令牌。希望这篇文章能帮助那些正在苦苦挣扎的人。
发布于 2018-10-08 23:07:13
确保在链接API-之后创建InApp-product。
如果你(像我一样)首先创建了InApp-,然后再链接API-,你就不会在没有得到"projectNotLinked"-error的情况下调用androidPublisher.purches.*端点。既不是来自代码,也不是通过API-explorer。
您可以通过调用androidpublisher.inappproducts.list来验证这就是问题所在。如果此操作成功,则您的API-project已正确链接到Google Play控制台...
它不会帮助在Google API中重新创建用户,也不会在OAuth 2.0客户端in或服务帐户密钥之间更改身份验证。在链接API-之后,当你创建一个新的InApp-product项目时,一切都会正常工作。
https://stackoverflow.com/questions/25156536
复制相似问题