Accounts: get
Gets a GTM Account.
Try it now.
Request
HTTP request
GET https://www.googleapis.com/tagmanager/v2/path
Parameters
Parameter name |
Value |
Description |
Path parameters |
path |
string |
GTM Account's API relative path.
Example: accounts/{account_id}
|
Authorization
This request requires authorization with at least one of the following scopes:
Scope |
https://www.googleapis.com/auth/tagmanager.edit.containers |
https://www.googleapis.com/auth/tagmanager.readonly |
https://www.googleapis.com/auth/tagmanager.manage.accounts |
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns an Accounts resource in the response body.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["Retrieves a Google Tag Manager (GTM) Account using an HTTP GET request to a specified path."],["Requires authorization with specific scopes like `tagmanager.edit.containers`, `tagmanager.readonly`, or `tagmanager.manage.accounts`."],["The request should not include a body and uses the `path` parameter to identify the GTM Account."],["A successful response returns an `Accounts` resource with details about the requested GTM Account."]]],["This document describes how to retrieve a Google Tag Manager (GTM) Account using a GET request to the specified API endpoint. The request requires authorization via one of three scopes: `tagmanager.edit.containers`, `tagmanager.readonly`, or `tagmanager.manage.accounts`. The necessary `path` parameter, representing the GTM Account's API relative path (e.g., accounts/{account_id}), must be included. No request body is needed. A successful response returns an Accounts resource.\n"]]