创建后,服务帐户未显示在Google Play控制台中

创建后,服务帐户未显示在Google Play控制台中

问题描述:

在Google Play控制台中,我链接了一个项目.然后,我创建了一个服务帐户.尽管如此,刷新控制台时,它仍然显示没有与您的项目关联的服务帐户". 已经等待了24小时以上.所有这些的目的就是确认收据.

From my Google Play console I linked a project. Then I created a service account. Still, when refreshing the console, it still says "There are no service accounts associated with your project." Waited over 24 hours already. The purpose of all that is receipts validation.

图1:一个链接的项目:

Picture 1: a linked project:

图片2:创建服务帐户:

Picture 2: service-account created:

我遇到了同样的问题,我通过以下方式解决了这个问题:

I had the same problem, I fixed it this way:

在步骤2中创建服务帐户时,您需要选择一个角色来授予该服务帐户一些权限,尽管该步骤显示该步骤是可选的,但在某些情况下则不是.如果您跳过此步骤,则新创建的服务帐户将不会显示在Google Play控制台API访问页面上,并且您在运行代码时会收到以下错误消息The current user has insufficient permissions to perform the requested operation.

When you create a service account in step 2, you need to select a role to grant this service account some permissions, although it shows the step is optional, but for some cases, it's not. If you skip this step, the newly created service account will not show up at the Google Play Console API access page, and you will get this error message, The current user has insufficient permissions to perform the requested operation when you run your code.