Method: containers.lookup

全名:accounts.containers.lookup

按目标账号 ID 或代码 ID 查找容器。

HTTP 请求

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

查询参数

参数
destinationId

string

与 GTM 容器关联的目标账号 ID,例如 AW-123456789。应仅设置 destinationId 或 tagId 之一。

tagId

string

GTM 容器的代码 ID,例如 GTM-123456789。应仅设置 destinationId 或 tagId 之一。

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文包含一个 Container 实例。

授权范围

需要以下 OAuth 范围之一:

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

如需了解详情,请参阅 OAuth 2.0 Overview