微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决启用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

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。