Resource: Container
Represents a Google Tag Manager Container.
| JSON representation | 
|---|
| { "accountId": string, "containerId": string, "name": string, "domainName": [ string ], "publicId": string, "timeZoneCountryId": string, "timeZoneId": string, "notes": string, "usageContext": [ enum ( | 
| Fields | |
|---|---|
| accountId | 
 GTM Account ID. | 
| containerId | 
 The Container ID uniquely identifies the GTM Container. | 
| name | 
 Container display name. | 
| domainName[] | 
 Optional list of domain names associated with the Container. | 
| publicId | 
 Container Public ID. | 
| timeZoneCountryId | 
 Container Country ID. | 
| timeZoneId | 
 Container Time Zone ID. | 
| notes | 
 Container Notes. | 
| usageContext[] | 
 List of Usage Contexts for the Container. Valid values include: 
 . | 
| enabledBuiltInVariable[] | 
 List of enabled built-in variables. Valid values include: 
 . | 
| fingerprint | 
 The fingerprint of the GTM Container as computed at storage time. This value is recomputed whenever the account is modified. | 
UsageContext
| Enums | |
|---|---|
| web | |
| android | |
| ios | |
| androidSdk5 | |
| iosSdk5 | |
| amp | |
BuiltInVariableType
Each following built-in variable's enum number must be exactly same as its counterpart in BuiltInType.BuiltInMacroType. NEXT TAG: 124
| Enums | |
|---|---|
| pageUrl | |
| pageHostname | |
| pagePath | |
| referrer | |
| event | For web or mobile. | 
| clickElement | |
| clickClasses | |
| clickId | |
| clickTarget | |
| clickUrl | |
| clickText | |
| firstPartyServingUrl | |
| formElement | |
| formClasses | |
| formId | |
| formTarget | |
| formUrl | |
| formText | |
| environmentName | |
| errorMessage | |
| errorUrl | |
| errorLine | |
| newHistoryUrl | |
| oldHistoryUrl | |
| newHistoryFragment | |
| oldHistoryFragment | |
| newHistoryState | |
| oldHistoryState | |
| historySource | |
| containerVersion | For web or mobile. | 
| debugMode | |
| randomNumber | For web or mobile. | 
| containerId | For web or mobile. | 
| appId | |
| appName | |
| appVersionCode | |
| appVersionName | |
| language | |
| osVersion | |
| platform | |
| sdkVersion | |
| deviceName | |
| resolution | |
| advertiserId | |
| advertisingTrackingEnabled | |
| htmlId | |
| ampBrowserLanguage | |
| ampCanonicalPath | |
| ampCanonicalUrl | |
| ampCanonicalHost | |
| ampReferrer | |
| ampTitle | |
| ampClientId | |
| ampClientTimezone | |
| ampClientTimestamp | |
| ampClientScreenWidth | |
| ampClientScreenHeight | |
| ampClientScrollX | |
| ampClientScrollY | |
| ampClientMaxScrollX | |
| ampClientMaxScrollY | |
| ampTotalEngagedTime | |
| ampPageViewId | |
| ampPageLoadTime | |
| ampPageDownloadTime | |
| ampGtmEvent | |
| eventName | |
| firebaseEventParameterCampaign | |
| firebaseEventParameterCampaignAclid | |
| firebaseEventParameterCampaignAnid | |
| firebaseEventParameterCampaignClickTimestamp | |
| firebaseEventParameterCampaignContent | |
| firebaseEventParameterCampaignCp1 | |
| firebaseEventParameterCampaignGclid | |
| firebaseEventParameterCampaignSource | |
| firebaseEventParameterCampaignTerm | |
| firebaseEventParameterCurrency | |
| firebaseEventParameterDynamicLinkAcceptTime | |
| firebaseEventParameterDynamicLinkLinkid | |
| firebaseEventParameterNotificationMessageDeviceTime | |
| firebaseEventParameterNotificationMessageId | |
| firebaseEventParameterNotificationMessageName | |
| firebaseEventParameterNotificationMessageTime | |
| firebaseEventParameterNotificationTopic | |
| firebaseEventParameterPreviousAppVersion | |
| firebaseEventParameterPreviousOsVersion | |
| firebaseEventParameterPrice | |
| firebaseEventParameterProductId | |
| firebaseEventParameterQuantity | |
| firebaseEventParameterValue | |
| videoProvider | |
| videoUrl | |
| videoTitle | |
| videoDuration | |
| videoPercent | |
| videoVisible | |
| videoStatus | |
| videoCurrentTime | |
| scrollDepthThreshold | |
| scrollDepthUnits | |
| scrollDepthDirection | |
| elementVisibilityRatio | |
| elementVisibilityTime | |
| elementVisibilityFirstTime | |
| elementVisibilityRecentTime | |
| Methods | |
|---|---|
| 
 | Creates a Container. | 
| 
 | Deletes a Container. | 
| 
 | Gets a Container. | 
| 
 | Lists all Containers that belongs to a GTM Account. | 
| 
 | Updates a Container. |