Workspaces: resolve_conflict

Rozwiązywanie konfliktu scalania dotyczącego elementu w obszarze roboczym przez zaktualizowanie go do rozwiązania przekazanego w żądaniu. Wypróbuj

Żądanie

Żądanie HTTP

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

Parametry

Nazwa parametru Wartość Opis
Parametry ścieżki
path string Ścieżka względna interfejsu API Workspace Menedżera tagów Google. Przykład: accounts/{identyfikator_konta}/containers/{identyfikator_kontenera}/workspaces/{identyfikator_obszaru roboczego}
Opcjonalne parametry zapytania
fingerprint string Jeśli zostanie podany, musi on odpowiadać odciskowi cyfrowemu entity_in_workspace w konflikcie scalania.

Upoważnienie

To żądanie wymaga autoryzacji w tym zakresie:

Zakres
https://www.googleapis.com/auth/tagmanager.edit.containers

Więcej informacji znajdziesz na stronie dotyczącej uwierzytelniania i autoryzacji.

Treść żądania

Dane w treści żądania podaj w następującej strukturze:

{
  "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
}
nazwa usługi, Wartość Opis Notatki
tag nested object Tag reprezentowany przez jednostkę.
trigger nested object Reguła reprezentowana przez element.
variable nested object Zmienna reprezentowana przez element.
folder nested object Folder reprezentowany przez encję.
changeStatus string Reprezentuje sposób zmiany elementu w obszarze roboczym.

Akceptowane wartości to:
  • added
  • changeStatusUnspecified
  • deleted
  • none
  • updated
client nested object Klient jest reprezentowany przez podmiot.
transformation nested object Transformacja reprezentowana przez encję.
zone nested object Strefa reprezentowana przez encję.
customTemplate nested object Szablon niestandardowy reprezentowany przez element.
builtInVariable nested object Wbudowana zmienna reprezentowana przez element.
builtInVariable.path string Ścieżka względna interfejsu API interfejsu API Menedżera tagów Google.
builtInVariable.accountId string Identyfikator konta Menedżera tagów Google.
builtInVariable.containerId string Identyfikator kontenera Menedżera tagów Google.
builtInVariable.workspaceId string Identyfikator obszaru roboczego Menedżera tagów Google.
builtInVariable.type string Typ wbudowanej zmiennej.

Akceptowane wartości to:
  • 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 Nazwa zmiennej wbudowanej, która ma być używana w odniesieniu do zmiennej wbudowanej.
gtagConfig nested object Konfiguracja tagu gtag reprezentowana przez element.

Odpowiedź

Jeśli operacja się uda, ta metoda zwróci pustą treść odpowiedzi.

Wypróbuj

Użyj poniższego eksploratora interfejsów API, aby wywołać tę metodę na bieżących danych i wyświetlić odpowiedź.