我正在嘗試使用適用于 Java 的 Google API 客戶端庫來獲取有關在我的 Android 應用程序中購買的用戶訂閱的信息。然后我得到這個錯誤: { "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." }我正在嘗試這些步驟:轉到https://console.cloud.google.com創建項目(或選擇現有項目)創建具有 Pub/Sub 管理員角色的服務帳戶轉到https://console.cloud.google.com/apis/library并搜索“Google Play Android Developer API”啟用該 API前往https://play.google.com/apps/publish轉到設置 > 開發者帳戶 > API 訪問鏈接您在步驟 2 中創建的項目將顯示您在步驟 3 中創建的服務帳戶在 Play 控制臺中向應用授予具有 Finance 權限的訪問權限等待至少 24 小時以使更改生效。
查看完整描述