Workspaces: resolve_conflict

किसी फ़ाइल फ़ोल्डर की इकाई को अनुरोध में पास की गई समाधान की गई इकाई में अपडेट करके, उसे मर्ज करने के विवाद का समाधान किया जाता है. इसे अभी आज़माएं.

अनुरोध

एचटीटीपी अनुरोध

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

पैरामीटर

पैरामीटर का नाम वैल्यू ब्यौरा
पाथ पैरामीटर
path string 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 इससे पता चलता है कि फ़ाइल फ़ोल्डर में इकाई को कैसे बदला गया है.

ये वैल्यू स्वीकार की जाती हैं:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
client nested object वह क्लाइंट जिसका प्रतिनिधित्व इकाई कर रही है.
transformation nested object वह बदलाव जिसे इकाई की ओर से दिखाया जा रहा है.
zone nested object वह ज़ोन जिसे इकाई दिखा रही है.
customTemplate nested object कस्टम टेंप्लेट, जिसे इकाई दिखा रही है.
builtInVariable nested object बिल्ट-इन वैरिएबल, जिसे इकाई दिखा रही है.
builtInVariable.path string GTM BuildInVariable का एपीआई रिलेटिव पाथ.
builtInVariable.accountId string GTM खाता आईडी.
builtInVariable.containerId string GTM कंटेनर आईडी.
builtInVariable.workspaceId string GTM Workspace आईडी.
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 कॉन्फ़िगरेशन, जिसे इकाई दिखा रही है.

जवाब

अगर यह तरीका सही तरीके से काम करता है, तो जवाब का मुख्य हिस्सा खाली होता है.

इसे आज़माएं!

लाइव डेटा पर इस तरीके को कॉल करने और जवाब देखने के लिए, नीचे दिए गए एपीआई एक्सप्लोरर का इस्तेमाल करें.