Method: tags.create

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

建立 GTM 代碼。

HTTP 要求

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

路徑參數

參數
parent

string

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

要求主體

要求主體包含 Tag 的例項。

回應主體

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

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 Overview