Versions

如需本資源的方法清單,請見本頁結尾。

資源表示法

代表 Google 代碼管理工具容器版本。

{
  "path": string,
  "accountId": string,
  "containerId": string,
  "containerVersionId": string,
  "name": string,
  "deleted": boolean,
  "description": string,
  "container": accounts.containers Resource,
  "tag": [
    accounts.containers.workspaces.tags Resource
  ],
  "trigger": [
    accounts.containers.workspaces.triggers Resource
  ],
  "variable": [
    accounts.containers.workspaces.variables Resource
  ],
  "folder": [
    accounts.containers.workspaces.folders Resource
  ],
  "builtInVariable": [
    {
      "path": string,
      "accountId": string,
      "containerId": string,
      "workspaceId": string,
      "type": string,
      "name": string
    }
  ],
  "fingerprint": string,
  "tagManagerUrl": string,
  "zone": [
    accounts.containers.workspaces.zones Resource
  ],
  "customTemplate": [
    accounts.containers.workspaces.templates Resource
  ],
  "client": [
    accounts.containers.workspaces.clients Resource
  ],
  "gtagConfig": [
    accounts.containers.workspaces.gtag_config Resource
  ],
  "transformation": [
    accounts.containers.workspaces.transformations Resource
  ]
}
資源名稱 說明 附註
accountId string GTM 帳戶 ID。
builtInVariable[] list 版本取自容器中的內建變數。
builtInVariable[].accountId string GTM 帳戶 ID。
builtInVariable[].containerId string GTM 容器 ID。
builtInVariable[].name string 用來參照內建變數的內建變數名稱。
builtInVariable[].path string GTM BuiltInVariable 的 API 相對路徑。
builtInVariable[].type string 內建變數的類型。

可接受的值為:
  • "advertiserId"
  • "advertisingTrackingEnabled"
  • "ampBrowserLanguage"
  • "ampCanonicalHost"
  • "ampCanonicalPath"
  • "ampCanonicalUrl"
  • "ampClientId"
  • "ampClientMaxScrollX"
  • "ampClientMaxScrollY"
  • "ampClientScreenHeight"
  • "ampClientScreenWidth"
  • "ampClientScrollX"
  • "ampClientScrollY"
  • "ampClientTimestamp"
  • "ampClientTimezone"
  • "ampGtmEvent"
  • "ampPageDownloadTime"
  • "ampPageLoadTime"
  • "ampPageViewId"
  • "ampReferrer"
  • "ampTitle"
  • "ampTotalEngagedTime"
  • "appId"
  • "appName"
  • "appVersionCode"
  • "appVersionName"
  • "builtInVariableTypeUnspecified"
  • "clickClasses"
  • "clickElement"
  • "clickId"
  • "clickTarget"
  • "clickText"
  • "clickUrl"
  • "clientName"
  • "containerId"
  • "containerVersion"
  • "debugMode"
  • "deviceName"
  • "elementVisibilityFirstTime"
  • "elementVisibilityRatio"
  • "elementVisibilityRecentTime"
  • "elementVisibilityTime"
  • "environmentName"
  • "errorLine"
  • "errorMessage"
  • "errorUrl"
  • "event"
  • "eventName"
  • "firebaseEventParameterCampaign"
  • "firebaseEventParameterCampaignAclid"
  • "firebaseEventParameterCampaignAnid"
  • "firebaseEventParameterCampaignClickTimestamp"
  • "firebaseEventParameterCampaignContent"
  • "firebaseEventParameterCampaignCp1"
  • "firebaseEventParameterCampaignGclid"
  • "firebaseEventParameterCampaignSource"
  • "firebaseEventParameterCampaignTerm"
  • "firebaseEventParameterCurrency"
  • "firebaseEventParameterDynamicLinkAcceptTime"
  • "firebaseEventParameterDynamicLinkLinkid"
  • "firebaseEventParameterNotificationMessageDeviceTime"
  • "firebaseEventParameterNotificationMessageId"
  • "firebaseEventParameterNotificationMessageName"
  • "firebaseEventParameterNotificationMessageTime"
  • "firebaseEventParameterNotificationTopic"
  • "firebaseEventParameterPreviousAppVersion"
  • "firebaseEventParameterPreviousOsVersion"
  • "firebaseEventParameterPrice"
  • "firebaseEventParameterProductId"
  • "firebaseEventParameterQuantity"
  • "firebaseEventParameterValue"
  • "firstPartyServingUrl"
  • "formClasses"
  • "formElement"
  • "formId"
  • "formTarget"
  • "formText"
  • "formUrl"
  • "historySource"
  • "htmlId"
  • "language"
  • "newHistoryFragment"
  • "newHistoryState"
  • "newHistoryUrl"
  • "oldHistoryFragment"
  • "oldHistoryState"
  • "oldHistoryUrl"
  • "osVersion"
  • "pageHostname"
  • "pagePath"
  • "pageUrl"
  • "platform"
  • "queryString"
  • "randomNumber"
  • "referrer"
  • "requestMethod"
  • "requestPath"
  • "resolution"
  • "scrollDepthDirection"
  • "scrollDepthThreshold"
  • "scrollDepthUnits"
  • "sdkVersion"
  • "serverPageLocationHostname"
  • "serverPageLocationPath"
  • "serverPageLocationUrl"
  • "videoCurrentTime"
  • "videoDuration"
  • "videoPercent"
  • "videoProvider"
  • "videoStatus"
  • "videoTitle"
  • "videoUrl"
  • "videoVisible"
  • "visitorRegion"
builtInVariable[].workspaceId string GTM 工作區 ID。
client[] list 容器中這個版本使用的用戶端。
container nested object 取得這個版本的來源容器。
containerId string GTM 容器 ID。
containerVersionId string 容器版本 ID 可用來識別 GTM 容器版本。
customTemplate[] list 取自這個版本的自訂範本。
deleted boolean 如果值為 true,表示這個容器版本已遭刪除。
description string 容器版本說明。 可寫入
fingerprint string 儲存時計算出的 GTM 容器版本指紋。每當容器版本修改時,系統都會重新計算這個值。
folder[] list 容器中取自這個版本的資料夾。
gtagConfig[] list 取自這個版本的容器中的 Google 代碼設定。
name string 容器版本顯示名稱。 可寫入
path string GTM 容器版本的 API 相對路徑。
tagManagerUrl string 自動產生的代碼管理工具使用者介面連結
tag[] list 版本取自容器中的代碼。
transformation[] list 版本取自容器的轉換。
trigger[] list 容器中,這個版本擷取來源的觸發條件。
variable[] list 版本中使用的來源容器變數。
zone[] list 容器中這個版本的來源可用區。

方法

刪除
刪除容器版本。
取得
取得容器版本。
直播
取得有效 (即已發布) 容器版本
publish
發布容器版本。
set_latest
設定偵測衝突和錯誤時,用於同步處理工作區的最新版本。
undelete
取消刪除容器版本。
更新
更新容器版本。