資源:容器
代表 Google 代碼管理工具容器,可指定代碼執行的平台、管理工作區,以及保留容器版本。
JSON 表示法 |
---|
{ "path": string, "accountId": string, "containerId": string, "name": string, "domainName": [ string ], "publicId": string, "tagIds": [ string ], "features": { object ( |
欄位 | |
---|---|
path |
GTM 容器的 API 相對路徑。 |
accountId |
GTM 帳戶 ID。 |
containerId |
容器 ID 可用於識別 GTM 容器。 |
name |
容器顯示名稱。 |
domainName[] |
與容器相關聯的網域名稱清單。 |
publicId |
容器公開 ID。 |
tagIds[] |
參照這個容器的所有代碼 ID。 |
features |
唯讀 Container 功能組合。 |
notes |
容器附註。 |
usageContext[] |
列出容器的使用情境。有效的值包括:
。 |
fingerprint |
儲存時計算的 GTM 容器指紋。每次修改帳戶時,系統都會重新計算這個值。 |
tagManagerUrl |
自動產生的代碼管理工具 UI 連結 |
taggingServerUrls[] |
容器的伺服器端容器網址清單。如果提供了多個網址,所有網址路徑都必須一致。 |
功能
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 |
這個容器是否支援由 GTM 管理的使用者權限。 |
supportEnvironments |
這個容器是否支援環境。 |
supportWorkspaces |
這個容器是否支援工作區。 |
supportGtagConfigs |
這個容器是否支援 Google 代碼設定。 |
supportBuiltInVariables |
這個容器是否支援內建變數 |
supportClients |
這個容器是否支援用戶端。 |
supportFolders |
這個容器是否支援資料夾。 |
supportTags |
這個容器是否支援代碼。 |
supportTemplates |
這個容器是否支援範本。 |
supportTriggers |
這個容器是否支援觸發條件。 |
supportVariables |
這個容器是否支援變數。 |
supportVersions |
這個容器是否支援容器版本。 |
supportZones |
這個容器是否支援區域。 |
supportTransformations |
這個容器是否支援轉換。 |
UsageContext
列舉 | |
---|---|
usageContextUnspecified |
|
web |
|
android |
|
ios |
|
androidSdk5 |
|
iosSdk5 |
|
amp |
|
server |
方法 |
|
---|---|
|
將容器合併。 |
|
建立容器。 |
|
刪除容器。 |
|
取得容器。 |
|
列出屬於 GTM 帳戶的所有容器。 |
|
根據目的地 ID 或代碼 ID 查詢容器。 |
|
將代碼 ID 從容器中移出。 |
|
取得容器的標記片段。 |
|
更新容器。 |