使用服务帐户访问Google Play Developer API时出现以下错误:
用于调用Google Play Developer API的项目ID尚未在Google Play开发者控制台中进行链接.
服务帐户电子邮件和.p12文件是使用服务帐户选项生成的APIs&Auth -> Credentials.Google Play Developer API中的应用程序使用google文档中提到的项目ID链接到项目.
但是,当我尝试使用Publishing API时,我仍然收到此错误.我正在寻找这个错误的解决方案以及使用Google Publishing API为Java客户端使用Google Play Developer API发布APK的一步一步的流程.我在用androidpublisher_v2_public.
在尝试获取Android应用内订阅状态(有效期限)时,我收到以下错误消息:
{
"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)
该网址为:https://www.googleapis.com/androidpublisher/v2/applications/[packageName]/inapp/ [productId]/purchases/[purchase_token]?access_token=[access_token]
它说项目ID没有链接.我做了以下事情:
Run Code Online (Sandbox Code Playgroud)1. Create the project in Google Developer Console. 2. …
当我使用Google API v2时,为了获得一个inapp列表,我在进行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."
}
}
Run Code Online (Sandbox Code Playgroud)
然后我研究了这个错误,最后看到了这个页面,这个页面以及这个页面上的建议.我跟着并仔细检查了项目在那里的链接方式,但没有帮助.
这就是我做的......
在Google Developer Console中: