Method: templates.get

全名:accounts.containers.workspaces.templates.get

取得 GTM 範本。

HTTP 要求

GET https://tagmanager.googleapis.com/tagmanager/v2/{path}

路徑參數

參數
path

string

GTM 自訂範本的 API 相對路徑。其格式為 accounts/{account}/containers/{container}/workspaces/{workspace}/templates/{template}

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 CustomTemplate 的執行例項。

授權範圍

需要下列其中一種 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 Overview