简体   繁体   English

403错误:用于调用Google Play Developer API的项目ID尚未在Google Play开发者控制台中进行链接

[英]403 error: The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console

I'm using v2 of the Google Play Developer Console account. 我正在使用Google Play开发者控制台帐户的v2。

I go to the online API explorer to make a new edit. 我转到在线API浏览器进行新的编辑。

I type in my package name (com.companyname.appname) in the packageName field, hit "Execute," and get this 403 error in response: 我在packageName字段中键入我的包名(com.companyname.appname),点击“执行”,并在响应中得到403错误:

{
 "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."
 }
}

I actually do have my Google Play Developer API project linked: 我确实将我的Google Play Developer API项目链接到了: 在此输入图像描述

Why does Google keep giving me this error? 为什么Google会一直给我这个错误?

This may not be what the OP was looking for but i stumbled upon this when looking for answers to receiving the exact same error when using service accounts. 这可能不是OP所期待的,但我在寻找使用服务帐户时收到完全相同错误的答案时偶然发现了这一点。 In case it helps anyone else, make sure you are using the json key for a service account that belongs to the linked project. 如果它可以帮助其他人,请确保您使用json密钥作为属于链接项目的服务帐户。

I just came across this same issue, in my case I had three projects in Google Dev console and when switching between it and the Google Play Dev console I ended up in the wrong project on Google Dev side. 我刚刚遇到了同样的问题,在我的情况下,我在Google Dev控制台中有三个项目,当它在Google Play开发者控制台之间切换时,我最终在Google Dev端的错误项目中。 After much confusion I went to the Google Dev console, made sure I was in the linked project, went to service accounts and generated a new json key for the service account, updated my script to use it, and now I'm receiving the correct responses from google. 经过多次混淆后,我进入了Google Dev控制台,确保我在链接项目中,转到服务帐户并为服务帐户生成一个新的json密钥,更新了我的脚本以使用它,现在我收到了正确的来自谷歌的回复。

The json key should start with the same project name you have linked in the Google Play Dev console. json密钥应以您在Google Play Dev控制台中链接的相同项目名称开头。 When using one from the wrong project I was getting the exact same response as in the question. 当使用错误项目中的一个时,我得到了与问题完全相同的响应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM