Workspaces: resolve_conflict

แก้ไขความขัดแย้งการรวมสำหรับเอนทิตีพื้นที่ทำงานด้วยการอัปเดตเอนทิตีที่แก้ไขแล้วซึ่งส่งผ่านในคำขอ ลองใช้เลย

ส่งคำขอ

คำขอ HTTP

POST https://www.googleapis.com/tagmanager/v2/+path:resolve_conflict

พารามิเตอร์

ชื่อพารามิเตอร์ ค่า คำอธิบาย
พารามิเตอร์เส้นทาง
path string เส้นทางที่เกี่ยวข้อง API ของ GTM Workspace ตัวอย่าง: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
พารามิเตอร์การค้นหาที่ไม่บังคับ
fingerprint string เมื่อระบุ ลายนิ้วมือนี้ต้องตรงกับลายนิ้วมือของentity_in_workspace ในความขัดแย้งการรวม

การให้สิทธิ์

คำขอนี้ต้องได้รับการให้สิทธิ์ตามขอบเขตต่อไปนี้

ขอบเขต
https://www.googleapis.com/auth/tagmanager.edit.containers

สำหรับข้อมูลเพิ่มเติม โปรดดูที่หน้าการตรวจสอบสิทธิ์และการให้สิทธิ์

เนื้อหาของคำขอ

ในเนื้อหาคำขอ ให้ข้อมูลในโครงสร้างต่อไปนี้

{
  "tag": accounts.containers.workspaces.tags Resource,
  "trigger": accounts.containers.workspaces.triggers Resource,
  "variable": accounts.containers.workspaces.variables Resource,
  "folder": accounts.containers.workspaces.folders Resource,
  "client": accounts.containers.workspaces.clients Resource,
  "transformation": accounts.containers.workspaces.transformations Resource,
  "zone": accounts.containers.workspaces.zones Resource,
  "customTemplate": accounts.containers.workspaces.templates Resource,
  "builtInVariable": {
    "path": string,
    "accountId": string,
    "containerId": string,
    "workspaceId": string,
    "type": string,
    "name": string
  },
  "gtagConfig": accounts.containers.workspaces.gtag_config Resource,
  "changeStatus": string
}
ชื่อพร็อพเพอร์ตี้ ค่า คำอธิบาย Notes
tag nested object แท็กที่เอนทิตีแสดงไว้
trigger nested object ทริกเกอร์ที่เอนทิตีแสดง
variable nested object ตัวแปรที่เอนทิตีแสดง
folder nested object โฟลเดอร์ที่เอนทิตีแสดงไว้
changeStatus string แสดงให้เห็นว่ามีการเปลี่ยนแปลงเอนทิตีในพื้นที่ทำงานอย่างไร

ค่าที่ยอมรับได้ มีดังนี้
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
client nested object ลูกค้าที่เอนทิตีเป็นตัวแทน
transformation nested object การเปลี่ยนรูปแบบที่เอนทิตีแสดง
zone nested object โซนที่เอนทิตีเป็นตัวแทน
customTemplate nested object เทมเพลตที่กำหนดเองซึ่งเอนทิตีแสดงไว้
builtInVariable nested object ตัวแปรบิวท์อินที่เอนทิตีแสดง
builtInVariable.path string เส้นทางที่เกี่ยวข้อง API ของ GTM BuiltInVariable
builtInVariable.accountId string รหัสบัญชี GTM
builtInVariable.containerId string รหัสคอนเทนเนอร์ GTM
builtInVariable.workspaceId string รหัสพื้นที่ทำงาน GTM
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.name string ชื่อของตัวแปรบิวท์อินที่จะใช้เพื่ออ้างถึงตัวแปรบิวท์อิน
gtagConfig nested object การกําหนดค่า gtag ที่แสดงโดยเอนทิตี

คำตอบ

หากสำเร็จ เมธอดนี้จะแสดงเนื้อหาการตอบกลับที่ว่างเปล่า

ลองใช้เลย

ใช้ API Explorer ด้านล่างเพื่อเรียกใช้เมธอดนี้กับข้อมูลแบบสดและดูการตอบกลับ