עוזר לפתור התנגשות מיזוג של ישות של Workspace על ידי עדכון שלה הישות שטופלה בבקשה שהועברה. רוצים לנסות עכשיו?
בקשה
בקשת 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 של Workspace. | |
builtInVariable.type |
string |
סוג המשתנה המובנה.
הערכים הקבילים הם:
|
|
builtInVariable.name |
string |
השם של המשתנה המובנה שישמש להתייחס למשתנה המובנה. | |
gtagConfig |
nested object |
הגדרת gtag שמיוצגת על ידי הישות. |
תשובה
אם הפעולה בוצעה ללא שגיאות, השיטה הזו תחזיר גוף תגובה ריק.
נסה בעצמך!
אפשר להשתמש ב-APIs Explorer שבהמשך כדי להפעיל את השיטה הזו בנתונים בזמן אמת ולראות את התגובה.