Containers

如需了解此资源的方法列表,请参阅本页结尾部分。

资源表示形式

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

{
  "path": string,
  "accountId": string,
  "containerId": string,
  "name": string,
  "domainName": [
    string
  ],
  "publicId": string,
  "tagIds": [
    string
  ],
  "features": {
    "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
  },
  "notes": string,
  "usageContext": [
    string
  ],
  "fingerprint": string,
  "tagManagerUrl": string,
  "taggingServerUrls": [
    string
  ]
}
属性名称 说明 备注
accountId string GTM 账号 ID。
containerId string 唯一标识 GTM 容器的容器 ID。
domainName[] list 该容器所关联的域名列表。 可写
features nested object 只读容器功能集。
features.supportBuiltInVariables boolean 此容器是否支持内置变量
features.supportClients boolean 此容器是否支持客户端。
features.supportEnvironments boolean 此容器是否支持环境。
features.supportFolders boolean 此容器是否支持文件夹。
features.supportGtagConfigs boolean 此容器是否支持 Google 代码配置。
features.supportTags boolean 此容器是否支持代码。
features.supportTemplates boolean 此容器是否支持模板。
features.supportTransformations boolean 此容器是否支持转换。
features.supportTriggers boolean 此容器是否支持触发器。
features.supportUserPermissions boolean 此容器是否支持由 GTM 管理的用户权限。
features.supportVariables boolean 此容器是否支持变量。
features.supportVersions boolean 此容器是否支持容器版本。
features.supportWorkspaces boolean 此容器是否支持工作区。
features.supportZones boolean 此容器是否支持可用区。
fingerprint string GTM 容器的指纹,以存储时计算的值为准。每当修改账号时,都会重新计算此值。
name string 容器的显示名称。 可写
notes string 容器备注。 可写
path string GTM 容器的 API 相对路径。
publicId string 容器公开 ID。
tagIds[] list 引用此容器的所有代码 ID。
tagManagerUrl string 自动生成的指向跟踪代码管理器界面的链接
taggingServerUrls[] list 容器的服务器端容器网址列表。如果提供了多个网址,那么所有网址路径都必须相匹配。 可写
usageContext[] list 容器的使用环境列表。有效值包括:web, android, or ios 可写

方法

combine
用于组合容器。
create
创建容器。
delete
删除容器。
get
获取容器。
list
列出属于 GTM 帐号的所有容器。
查找
按目的地 ID 查找容器。
move_tag_id
将代码 ID 移出容器。
代码段
获取容器的代码段。
update
更新容器。