Method: containers.snippet

全名:accounts.containers.snippet

获取容器的代码植入代码段。

HTTP 请求

GET https://tagmanager.googleapis.com/tagmanager/v2/{path}:snippet

路径参数

参数
path

string

容器代码段的 API 相对路径。其格式为 accounts/{account}/containers/{container}

请求正文

请求正文必须为空。

响应正文

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{

  // Union field type can be only one of the following:
  "snippet": string,
  "containerConfig": string
  // End of list of possible types for union field type.
}
字段

联合字段 type

type 只能是下列其中一项:

snippet

string

容器的代码段标记。

containerConfig

string

用于手动配置代码植入服务器的服务器容器配置参数。

授权范围

需要以下 OAuth 范围之一:

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

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