Containers: lookup

按目的地 ID 或代码 ID 查找容器。立即尝试

请求

HTTP 请求

GET https://www.googleapis.com/tagmanager/v2/accounts/containers:lookup

参数

参数名称 说明
可选的查询参数
destinationId string 关联到 GTM 容器的目标帐号 ID,例如 AW-123456789。 示例:accounts/containers:lookup?destination_id={destination_id}。 只能设置 destination_id 和 tag_id 中的一个。
tagId string GTM 容器的代码 ID,例如 GTM-123456789。 示例:accounts/containers:lookup?tag_id={tag_id}。 只能设置 destination_id 和 tag_id 中的一个。

授权

此请求需要获得以下至少一个范围的授权:

范围
https://www.googleapis.com/auth/tagmanager.edit.containers
https://www.googleapis.com/auth/tagmanager.readonly

如需了解详情,请参阅身份验证和授权页面。

请求正文

使用此方法时请勿提供请求正文。

回答

如果成功,此方法将在响应正文中返回 Containers 资源

试试看!

请使用下面的 API Explorer 针对实际数据调用此方法并查看响应。