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 容器 ID 是用來識別 GTM 容器。
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
合併容器。
建立
建立容器。
刪除
刪除容器。
取得
取得容器。
list
列出屬於某個 GTM 帳戶的所有容器。
查詢
根據目的地 ID 查詢容器。
move_tag_id
將代碼 ID 移出容器。
文字片段
取得容器的代碼程式碼片段。
更新
更新容器。