许可问题Google Play

ste*_*tko 19 android in-app-purchase google-play

我遇到了麻烦 androidpublisher.inapppurchases.get

我的项目仅根据https://code.google.com/p/google-api-java-client/wiki/OAuth2#Service_Accounts进行,并且在我迁移到新的Google Play帐户之前一切正常.所以现在当我执行请求服务器到服务器时,我收到了这个响应.

{
  "code" : 401,
  "errors" : [ {
    "domain" : "androidpublisher",
    "message" : "The current user has insufficient permissions to perform the requested operation.",
    "reason" : "permissionDenied"
  } ],
  "message" : "The current user has insufficient permissions to perform the requested operation."
}
Run Code Online (Sandbox Code Playgroud)

任何人都熟悉这种反应,因为在谷歌文档中没有任何关于此的线索.

ste*_*tko 30

问题解决了在Google Play设置中以管理员用户身份添加用户服务帐户电子邮件地址xxxxx@developer.gserviceaccount.com.

  • 实际上不在Google Play设置中,而是在play.google.com-> settings-> API访问->服务帐户->授予权限 (2认同)

小智 8

从Google Play控制台转到(使用管理员权限):

  1. 设置(左侧面板)
  2. 开发者帐户(左侧面板)
  3. 用户和权限(左侧面板)
  4. 单击"邀请新用户"按钮.
  5. 输入服务帐户电子邮件(与您使用的json文件中的相同,以及创建服务帐户时生成的Google)
  6. 在Role DropDown菜单中选择Administrator.
  7. 点击发送邀请

而已.现在没有人可以阻止你!:)