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 内置变量的 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 唯一标识 GTM 容器版本的容器版本 ID。
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 该版本所在的容器中的区域。

方法

delete
删除容器版本。
get
获取容器版本。
live
获取当前(即已发布的)容器版本
publish
发布容器版本。
set_latest
设置在检测到冲突和错误时用于同步工作区的最新版本。
undelete
恢复删除的容器版本。
update
更新容器版本。