REST Resource: accounts.containers

资源:容器

表示 Google 跟踪代码管理器容器,该容器可指定代码的运行平台,管理工作区和保留容器版本。

JSON 表示法
{
  "path": string,
  "accountId": string,
  "containerId": string,
  "name": string,
  "domainName": [
    string
  ],
  "publicId": string,
  "tagIds": [
    string
  ],
  "features": {
    object (Features)
  },
  "notes": string,
  "usageContext": [
    enum (UsageContext)
  ],
  "fingerprint": string,
  "tagManagerUrl": string,
  "taggingServerUrls": [
    string
  ]
}
字段
path

string

GTM 容器的 API 相对路径。

accountId

string

GTM 账号 ID。

containerId

string

唯一标识 GTM 容器的容器 ID。

name

string

容器的显示名称。

domainName[]

string

该容器所关联的域名列表。

publicId

string

容器公开 ID。

tagIds[]

string

引用此容器的所有代码 ID。

features

object (Features)

只读容器功能集。

notes

string

容器备注。

usageContext[]

enum (UsageContext)

容器的使用环境列表。有效值包括:

web, android, or ios

fingerprint

string

GTM 容器的指纹,以存储时计算的值为准。每当修改账号时,都会重新计算此值。

tagManagerUrl

string

自动生成的指向跟踪代码管理器界面的链接

taggingServerUrls[]

string

容器的服务器端容器网址列表。如果提供了多个网址,那么所有网址路径都必须相匹配。

功能

JSON 表示法
{
  "supportUserPermissions": boolean,
  "supportEnvironments": boolean,
  "supportWorkspaces": boolean,
  "supportGtagConfigs": boolean,
  "supportBuiltInVariables": boolean,
  "supportClients": boolean,
  "supportFolders": boolean,
  "supportTags": boolean,
  "supportTemplates": boolean,
  "supportTriggers": boolean,
  "supportVariables": boolean,
  "supportVersions": boolean,
  "supportZones": boolean,
  "supportTransformations": boolean
}
字段
supportUserPermissions

boolean

此容器是否支持由 GTM 管理的用户权限。

supportEnvironments

boolean

此容器是否支持环境。

supportWorkspaces

boolean

此容器是否支持工作区。

supportGtagConfigs

boolean

此容器是否支持 Google 代码配置。

supportBuiltInVariables

boolean

此容器是否支持内置变量

supportClients

boolean

此容器是否支持客户端。

supportFolders

boolean

此容器是否支持文件夹。

supportTags

boolean

此容器是否支持代码。

supportTemplates

boolean

此容器是否支持模板。

supportTriggers

boolean

此容器是否支持触发器。

supportVariables

boolean

此容器是否支持变量。

supportVersions

boolean

此容器是否支持容器版本。

supportZones

boolean

此容器是否支持时区。

supportTransformations

boolean

此容器是否支持转换。

UsageContext

枚举
usageContextUnspecified
web
android
ios
androidSdk5
iosSdk5
amp
server

方法

combine

组合容器。

create

创建容器。

delete

删除容器。

get

获取容器。

list

列出属于 GTM 账号的所有容器。

lookup

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

move_tag_id

将代码 ID 从容器中移出。

snippet

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

update

更新容器。