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

容器 ID 可用於識別 GTM 容器。

name

string

容器顯示名稱。

domainName[]

string

與容器相關聯的網域名稱清單。

publicId

string

容器公開 ID。

tagIds[]

string

參照這個容器的所有代碼 ID。

features

object (Features)

唯讀 Container 功能組合。

notes

string

容器附註。

usageContext[]

enum (UsageContext)

列出容器的使用情境。有效的值包括:

web, android, or ios

fingerprint

string

儲存時計算的 GTM 容器指紋。每次修改帳戶時,系統都會重新計算這個值。

tagManagerUrl

string

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

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

更新容器。