REST Resource: accounts.containers

ทรัพยากร: คอนเทนเนอร์

แสดงถึงคอนเทนเนอร์ Google Tag Manager

การแสดง JSON
{
  "accountId": string,
  "containerId": string,
  "name": string,
  "domainName": [
    string
  ],
  "publicId": string,
  "timeZoneCountryId": string,
  "timeZoneId": string,
  "notes": string,
  "usageContext": [
    enum (UsageContext)
  ],
  "enabledBuiltInVariable": [
    enum (BuiltInVariableType)
  ],
  "fingerprint": string
}
ช่อง
accountId

string

รหัสบัญชี GTM

containerId

string

รหัสคอนเทนเนอร์จะระบุคอนเทนเนอร์ GTM ได้อย่างไม่ซ้ำกัน

name

string

ชื่อที่แสดงของคอนเทนเนอร์

domainName[]

string

รายการชื่อโดเมน (ไม่บังคับ) ที่เชื่อมโยงกับคอนเทนเนอร์

publicId

string

รหัสสาธารณะของคอนเทนเนอร์

timeZoneCountryId

string

รหัสประเทศของคอนเทนเนอร์

timeZoneId

string

รหัสเขตเวลาของคอนเทนเนอร์

notes

string

โน้ตคอนเทนเนอร์

usageContext[]

enum (UsageContext)

รายการบริบทการใช้งานสําหรับคอนเทนเนอร์ ค่าที่ใช้ได้มีดังนี้

web, android, ios

.

enabledBuiltInVariable[]

enum (BuiltInVariableType)

รายการตัวแปรในตัวที่เปิดใช้งาน ค่าที่ใช้ได้มีดังนี้

pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, clickText, formElement, formClasses, formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine, newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState, historySource, containerVersion, debugMode, randomNumber, containerId

.

fingerprint

string

ลายนิ้วมือของคอนเทนเนอร์ GTM ที่คำนวณ ณ เวลาจัดเก็บ ระบบจะคํานวณค่านี้ใหม่ทุกครั้งที่มีการแก้ไขบัญชี

UsageContext

Enum
web
android
ios
androidSdk5
iosSdk5
amp

BuiltInVariableType

หมายเลข enum ของตัวแปรในตัวต่อไปนี้แต่ละรายการต้องตรงกับของตัวแปรที่ตรงกันใน BuiltInType.BuiltInMacroType แท็กถัดไป: 124

Enum
pageUrl
pageHostname
pagePath
referrer
event สำหรับเว็บหรืออุปกรณ์เคลื่อนที่
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 สำหรับเว็บหรืออุปกรณ์เคลื่อนที่
debugMode
randomNumber สำหรับเว็บหรืออุปกรณ์เคลื่อนที่
containerId สำหรับเว็บหรืออุปกรณ์เคลื่อนที่
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

เมธอด

create

สร้างคอนเทนเนอร์

delete

ลบคอนเทนเนอร์

get

รับคอนเทนเนอร์

list

แสดงรายการคอนเทนเนอร์ทั้งหมดที่เป็นของบัญชี GTM

update

อัปเดตคอนเทนเนอร์