启用Google我的商家API api通话失败

问题描述

我尝试使用具有范围的访问令牌访问GMB帐户列表api https://www.googleapis.com/auth/business.manage

{
"error": {
"code": 403,"message": "Google My Business API has not been used in project xxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mybusiness.googleapis.com/overview?project=xxxxxx then retry. If you enabled this API recently,wait a few minutes for the action to propagate to our systems and retry.","status": "PERMISSION_DENIED","details": [
  {
    "@type": "type.googleapis.com/google.rpc.Help","links": [
      {
        "description": "Google developers console API activation","url": "https://console.developers.google.com/apis/api/mybusiness.googleapis.com/overview?project=xxxxx"
      }
    ]
  }
]
}
}

每当我尝试提交请求时,我都会收到GMB的电子邮件Your company already has a whitelisted project to access the Google My Business API. At this time,we are only whitelisting one project per business.

我检查了,但是没有名称为“ Google我的商家”的图书馆。

当前启用的库是

enter image description here

解决方法

您是否已提交表格以访问GMB API? https://docs.google.com/forms/d/e/1FAIpQLSfC_FKSWzbSae_5rOpgwFeIUzXUF1JCQnlsZM_gC1I2UHjA3w/viewform

填写时,您必须精确设置Google将授予其访问权限的电子邮件地址。也许其他人替您填写了公司信息,但没有提及您的电子邮件地址。

就我而言,当我收到GMB团队的确认电子邮件时,在控制台中搜索GMB API时,我可以看到它(请参见屏幕截图)

enter image description here

然后,我要做的就是单击以启用它。