REST Resource: accounts.containers.workspaces.zones

資源:Zone

代表 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

區域 ID 可用於唯一識別 GTM 區域。

name

string

可用區顯示名稱。

fingerprint

string

儲存時計算的 GTM 區域指紋。只要區域有所變更,這個值就會重新計算。

tagManagerUrl

string

自動產生的代碼管理工具 UI 連結

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

如果已為這個區域啟用類型限制,則為「是」。

whitelistedTypeId[]

string

已加入許可清單,可在這個區域使用的公開 ID 類型清單。

方法

create

建立 GTM 區域。

delete

刪除 GTM 可用區。

get

取得 GTM 區域。

list

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

revert

將 GTM 工作室中 GTM 區域的變更還原。

update

更新 GTM 區域。