แก้ไขความขัดแย้งการรวมสำหรับเอนทิตีพื้นที่ทำงานด้วยการอัปเดตเป็นเอนทิตี มีการส่งเอนทิตีที่แก้ไขแล้วในคำขอ ลองใช้เลย
ส่งคำขอ
คำขอ 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 }
ชื่อพร็อพเพอร์ตี้ | ค่า | คำอธิบาย | หมายเหตุ |
---|---|---|---|
tag |
nested object |
แท็กที่เอนทิตีแสดงไว้ | |
trigger |
nested object |
ทริกเกอร์ที่เอนทิตีแสดง | |
variable |
nested object |
ตัวแปรที่เอนทิตีแสดง | |
folder |
nested object |
โฟลเดอร์ที่เอนทิตีแสดงไว้ | |
changeStatus |
string |
แสดงให้เห็นว่ามีการเปลี่ยนแปลงเอนทิตีในพื้นที่ทำงานอย่างไร
ค่าที่ยอมรับได้ มีดังนี้
|
|
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 |
ประเภทของตัวแปรบิวท์อิน
ค่าที่ยอมรับได้ มีดังนี้
|
|
builtInVariable.name |
string |
ชื่อของตัวแปรบิวท์อินที่จะใช้เพื่ออ้างถึงตัวแปรบิวท์อิน | |
gtagConfig |
nested object |
การกําหนดค่า gtag ที่แสดงโดยเอนทิตี |
คำตอบ
หากสำเร็จ เมธอดนี้จะแสดงเนื้อหาการตอบกลับที่ว่างเปล่า
ลองใช้งาน
ใช้ API Explorer ด้านล่างเพื่อเรียกใช้เมธอดนี้กับข้อมูลแบบสดและดูการตอบกลับ