ワークスペースのエンティティで発生した統合の競合を、リクエストで渡された解決済みのエンティティに更新して解決します。 実習をご覧ください。
リクエスト
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 |
エンティティがワークスペース内でどのように変更されたかを表します。
有効な値は次のとおりです。
|
|
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 |
組み込み変数の型。
有効な値は次のとおりです。
|
|
builtInVariable.name |
string |
組み込み変数の参照に使用する組み込み変数の名前。 | |
gtagConfig |
nested object |
エンティティで表される gtag 設定。 |
レスポンス
成功した場合、このメソッドは空のレスポンス本文を返します。
試してみよう:
以下の API Explorer を使用して、ライブデータに対してこのメソッドを呼び出し、レスポンスを確認してください。