REST Resource: accounts.containers.workspaces.zones

资源:可用区

表示 Google 跟踪代码管理器区域的内容。

JSON 表示法
{
  "path": string,
  "accountId": string,
  "containerId": string,
  "workspaceId": string,
  "zoneId": string,
  "name": string,
  "fingerprint": string,
  "tagManagerUrl": string,
  "notes": string,
  "childContainer": [
    {
      object (ChildContainer)
    }
  ],
  "boundary": {
    object (Boundary)
  },
  "typeRestriction": {
    object (TypeRestriction)
  }
}
字段
path

string

GTM 区域的 API 相对路径。

accountId

string

GTM 账号 ID。

containerId

string

GTM 容器 ID。

workspaceId

string

GTM 工作区 ID。

zoneId

string

唯一标识 GTM 区域的区域 ID。

name

string

区域显示名。

fingerprint

string

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

tagManagerUrl

string

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

notes

string

有关如何在容器中应用此区域的用户注释。

childContainer[]

object (ChildContainer)

此区域的子容器。

boundary

object (Boundary)

此区域的边界。

typeRestriction

object (TypeRestriction)

此区域的类型限制。

ChildContainer

表示区域的子容器。

JSON 表示法
{
  "publicId": string,
  "nickname": string
}
字段
publicId

string

子容器的公共 ID。

nickname

string

区域中子容器的别名。

边界

表示区域的边界。

JSON 表示法
{
  "condition": [
    {
      object (Condition)
    }
  ],
  "customEvaluationTriggerId": [
    string
  ]
}
字段
condition[]

object (Condition)

这些条件组合起来可构成边界。

customEvaluationTriggerId[]

string

自定义评估触发器 ID。如果列出的任何触发器为 true,区域将评估其边界条件。

TypeRestriction

表示区域的类型限制。

JSON 表示法
{
  "enable": boolean,
  "whitelistedTypeId": [
    string
  ]
}
字段
enable

boolean

如果已为此区域启用类型限制,则为 true。

whitelistedTypeId[]

string

已列入白名单以便在此区域中使用的类型公共 ID 的列表。

方法

create

创建 GTM 区域。

delete

删除 GTM 区域。

get

获取 GTM 区域。

list

列出 GTM 容器工作区的所有 GTM 区域。

revert

还原对 GTM 工作区中 GTM 区域的更改。

update

更新 GTM 区域。