Workspaces: resolve_conflict

لحل تعارض الدمج لعنصر في مساحة العمل من خلال تعديله إلى الكيان الذي تم حله والذي تم تمريره في الطلب. تجربة ذلك الآن

الطلب

طلب HTTP

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
}
اسم الموقع القيمة الوصف 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 المسار النسبي لواجهة برمجة التطبيقات في GTM BuiltInVariable.
builtInVariable.accountId string رقم تعريف حساب "إدارة العلامات من Google"
builtInVariable.containerId string رقم تعريف حاوية Google Tag Manager
builtInVariable.workspaceId string رقم تعريف Workspace في "إدارة العلامات من Google"
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 الذي يمثله الكيان.

الإجابة

في حال نجاح هذه الطريقة، سيتم عرض نص استجابة فارغ.

تجربة

يمكنك استخدام "مستكشف واجهات برمجة التطبيقات" أدناه لطلب هذه الطريقة على البيانات المباشرة والاطّلاع على الردّ.