Method: triggers.create

全名:accounts.containers.workspaces.triggers.create

建立 GTM 觸發條件。

HTTP 要求

POST https://tagmanager.googleapis.com/tagmanager/v2/{parent}/triggers

路徑參數

參數
parent

string

GTM Workspace 的 API 相對路徑。其格式為 accounts/{account}/containers/{container}/workspaces/{workspace}

要求主體

要求主體包含 Trigger 的例項。

回應主體

如果成功,回應主體會包含新建立的 Trigger 例項。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 Overview