Method: accounts.get

全名:accounts.get

获取 GTM 账号。

HTTP 请求

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

路径参数

参数
path

string

GTM 账号的 API 相对路径。其格式为 accounts/{account}

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文包含一个 Account 实例。

授权范围

需要以下 OAuth 范围之一:

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

如需了解详情,请参阅 OAuth 2.0 Overview