【发布时间】:2019-02-28 16:31:21
【问题描述】:
我想连接到跟踪代码管理器客户端 API 以访问容器中的某些内容,而无需登录。
This page 在顶部提到它“需要授权”。但是,我正在使用容器的内容来存储广告网址,因此不应要求我正在处理的网站的用户为此登录 Google。
让我感到困惑的是"Try this API" UI 让我可以使用以下方式选择凭据:
- 谷歌 OAuth 2.0
- 或 API 密钥
但是,当我选择“API 密钥”时,我收到 401 错误消息:“需要登录”。
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}
谢谢
【问题讨论】:
标签: google-api google-tag-manager google-authentication