Workspaces: resolve_conflict

ワークスペースのエンティティで発生した統合の競合を、リクエストで渡された解決済みのエンティティに更新して解決します。 実習をご覧ください。

リクエスト

HTTP リクエスト

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

パラメータ

パラメータ名 説明
パスパラメータ
path string GTM ワークスペースの API 相対パス。 例: 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 BuiltInVariable の API 相対パス。
builtInVariable.accountId string GTM アカウント ID。
builtInVariable.containerId string GTM コンテナ ID。
builtInVariable.workspaceId string GTM ワークスペース ID。
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 設定。

レスポンス

成功した場合、このメソッドは空のレスポンス本文を返します。

試してみよう:

以下の API Explorer を使用して、ライブデータに対してこのメソッドを呼び出し、レスポンスを確認してください。