Workspaces: sync

סנכרון של סביבת עבודה לגרסה האחרונה של הקונטיינר על ידי עדכון כל הישויות של סביבת העבודה שלא שונו והצגת התנגשויות עם ישויות שהשתנו. רוצים לנסות עכשיו?

בקשה

בקשת HTTP

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

פרמטרים

שם הפרמטר ערך של Gpa education תיאור
פרמטרים של נתיב
path string הנתיב היחסי של ה-API של GTM Workspace. דוגמה: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}

אישור

הבקשה הזו מחייבת הרשאה עם ההיקף הבא:

היקף
https://www.googleapis.com/auth/tagmanager.edit.containers

מידע נוסף זמין בדף אימות והרשאה.

גוף הבקשה

אל תספקו גוף בקשה בשיטה הזו.

תשובה

אם הפעולה בוצעה ללא שגיאות, השיטה הזו מחזירה גוף תגובה עם המבנה הבא:

{
  "syncStatus": {
    "mergeConflict": boolean,
    "syncError": boolean
  },
  "mergeConflict": [
    {
      "entityInWorkspace": {
        "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
      },
      "entityInBaseVersion": {
        "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
      }
    }
  ]
}
שם הנכס ערך של Gpa education תיאור הערות
syncStatus nested object מציין אם הסנכרון גרם להתנגשות במיזוג או לשגיאה בסנכרון.
syncStatus.mergeConflict boolean פעולת סנכרון הקרן זיהתה התנגשות במיזוג.
syncStatus.syncError boolean אירעה שגיאה במהלך פעולת הסנכרון.
mergeConflict[] list התנגשות המיזוג לאחר הסנכרון אם השדה הזה לא ריק, הסנכרון עדיין נחשב כסנכרון מוצלח. עם זאת, לא ניתן ליצור גרסה עד לפתרון כל ההתנגשויות.
mergeConflict[].entityInWorkspace nested object הישות של סביבת העבודה שמכילה שינויים מתנגשים בהשוואה לגרסת הבסיס. אם ישות נמחקה בסביבת עבודה, היא עדיין תופיע עם סטטוס השינוי שנמחק.
mergeConflict[].entityInWorkspace.tag nested object התג שמיוצג על ידי הישות.
mergeConflict[].entityInWorkspace.trigger nested object הטריגר שמיוצג על ידי הישות.
mergeConflict[].entityInWorkspace.variable nested object המשתנה שמיוצג על ידי הישות.
mergeConflict[].entityInWorkspace.folder nested object התיקייה שהישות מייצגת.
mergeConflict[].entityInWorkspace.changeStatus string מייצג את האופן שבו הישות השתנתה בסביבת העבודה.

הערכים הקבילים הם:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
mergeConflict[].entityInBaseVersion nested object הישות של גרסת הבסיס (מאז פעולת הסנכרון האחרונה) שיש בה שינויים מתנגשים בהשוואה לסביבת העבודה. אם השדה הזה חסר, המשמעות היא שהישות של סביבת העבודה נמחקה מהגרסה הבסיסית.
mergeConflict[].entityInBaseVersion.tag nested object התג שמיוצג על ידי הישות.
mergeConflict[].entityInBaseVersion.trigger nested object הטריגר שמיוצג על ידי הישות.
mergeConflict[].entityInBaseVersion.variable nested object המשתנה שמיוצג על ידי הישות.
mergeConflict[].entityInBaseVersion.folder nested object התיקייה שהישות מייצגת.
mergeConflict[].entityInBaseVersion.changeStatus string מייצג את האופן שבו הישות השתנתה בסביבת העבודה.

הערכים הקבילים הם:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
mergeConflict[].entityInWorkspace.client nested object הלקוח שמיוצג על ידי הישות.
mergeConflict[].entityInBaseVersion.client nested object הלקוח שמיוצג על ידי הישות.
mergeConflict[].entityInWorkspace.transformation nested object הטרנספורמציה שמיוצגת על ידי הישות.
mergeConflict[].entityInBaseVersion.transformation nested object הטרנספורמציה שמיוצגת על ידי הישות.
mergeConflict[].entityInWorkspace.zone nested object התחום שמיוצג על ידי הישות.
mergeConflict[].entityInWorkspace.customTemplate nested object התבנית המותאמת אישית שמיוצגת על ידי הישות.
mergeConflict[].entityInWorkspace.builtInVariable nested object המשתנה המובנה שמיוצג על ידי הישות.
mergeConflict[].entityInWorkspace.builtInVariable.path string הנתיב היחסי ל-API של GTM BuiltInVariable.
mergeConflict[].entityInWorkspace.builtInVariable.accountId string מספר חשבון GTM.
mergeConflict[].entityInWorkspace.builtInVariable.containerId string מזהה מאגר התגים של GTM.
mergeConflict[].entityInWorkspace.builtInVariable.workspaceId string מזהה GTM של Workspace.
mergeConflict[].entityInWorkspace.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"
mergeConflict[].entityInWorkspace.builtInVariable.name string השם של המשתנה המובנה שישמש להתייחס למשתנה המובנה.
mergeConflict[].entityInWorkspace.gtagConfig nested object הגדרת gtag שמיוצגת על ידי הישות.
mergeConflict[].entityInBaseVersion.zone nested object התחום שמיוצג על ידי הישות.
mergeConflict[].entityInBaseVersion.customTemplate nested object התבנית המותאמת אישית שמיוצגת על ידי הישות.
mergeConflict[].entityInBaseVersion.builtInVariable nested object המשתנה המובנה שמיוצג על ידי הישות.
mergeConflict[].entityInBaseVersion.builtInVariable.path string הנתיב היחסי ל-API של GTM BuiltInVariable.
mergeConflict[].entityInBaseVersion.builtInVariable.accountId string מספר חשבון GTM.
mergeConflict[].entityInBaseVersion.builtInVariable.containerId string מזהה מאגר התגים של GTM.
mergeConflict[].entityInBaseVersion.builtInVariable.workspaceId string מזהה GTM של Workspace.
mergeConflict[].entityInBaseVersion.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"
mergeConflict[].entityInBaseVersion.builtInVariable.name string השם של המשתנה המובנה שישמש להתייחס למשתנה המובנה.
mergeConflict[].entityInBaseVersion.gtagConfig nested object הגדרת gtag שמיוצגת על ידי הישות.

רוצה לנסות?

אפשר להשתמש ב-APIs Explorer שבהמשך כדי להפעיל את השיטה הזו בנתונים בזמן אמת ולראות את התגובה.