2

我正在使用 Google Play Android 开发者 API。我从具有服务帐户的服务器访问它。我有一个私钥并获得了一个访问令牌。

我使用范围https://www.googleapis.com/auth/androidpublisher完全是https://developers.google.com/android-publisher/archive/v2/purchases/voidedpurchases/list。当我询问订阅信息时,我收到 401 错误:

"Error": {
  "errors": [
   {
    "domain": "androidpublisher",
    "reason": "permissionDenied",
    "message": "The current user has insufficient permissions to perform the requested operation."
}
 ],
  "code": 401,
  "message": "The current user has insufficient permissions to perform the requested operation."
}

问题的原因可能是什么?我将此服务帐户添加到开发人员控制台并提供所有权限(管理员访问权限)。

在此处输入图像描述

4

0 回答 0