Workspaces: resolve_conflict

Giải quyết xung đột hợp nhất cho một thực thể không gian làm việc bằng cách cập nhật thực thể đó thành thực thể đã được giải quyết được chuyển trong yêu cầu. Thử ngay.

Yêu cầu

Yêu cầu HTTP

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

Thông số

Tên thông số Giá trị Nội dung mô tả
Tham số đường dẫn
path string Đường dẫn tương đối cho API của GTM Workspace. Ví dụ: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
Tham số truy vấn không bắt buộc
fingerprint string Khi được cung cấp, vân tay số này phải khớp với vân tay số của entity_in_workspace trong xung đột hợp nhất.

Ủy quyền

Yêu cầu này cần được cho phép có phạm vi sau:

Phạm vi
https://www.googleapis.com/auth/tagmanager.edit.containers

Để biết thêm thông tin, hãy xem trang xác thực và uỷ quyền.

Nội dung yêu cầu

Trong nội dung yêu cầu, hãy cung cấp dữ liệu theo cấu trúc sau:

{
  "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
}
Tên tài sản Giá trị Nội dung mô tả Ghi chú
tag nested object Thẻ do thực thể đại diện.
trigger nested object Điều kiện kích hoạt do thực thể đại diện.
variable nested object Biến do thực thể đại diện.
folder nested object Thư mục mà thực thể đại diện.
changeStatus string Biểu thị cách thực thể được thay đổi trong không gian làm việc.

Các giá trị được chấp nhận là:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
client nested object Ứng dụng do thực thể đại diện.
transformation nested object Phép biến đổi do thực thể biểu thị.
zone nested object Vùng được đại diện bởi thực thể.
customTemplate nested object Mẫu tuỳ chỉnh do thực thể đại diện.
builtInVariable nested object Biến tích hợp được biểu thị bằng thực thể.
builtInVariable.path string Đường dẫn liên quan đến API của BuildInVariable của GTM.
builtInVariable.accountId string Mã tài khoản GTM.
builtInVariable.containerId string Mã vùng chứa Trình quản lý thẻ của Google (GTM).
builtInVariable.workspaceId string Mã không gian làm việc của Trình quản lý thẻ của Google (GTM).
builtInVariable.type string Loại biến tích hợp.

Các giá trị được chấp nhận là:
  • "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 Tên của biến tích hợp được dùng để tham chiếu đến biến tích hợp.
gtagConfig nested object Cấu hình gtag đang được thực thể đại diện.

Phản hồi

Nếu thành công, phương thức này sẽ trả về một nội dung phản hồi trống.

Hãy dùng thử!

Hãy sử dụng APIs Explorer (Trình khám phá API) bên dưới để gọi phương thức này trên dữ liệu trực tiếp và xem phản hồi.