Full name: accounts.list
Lists all GTM Accounts that a user has access to.
HTTP request
GET https://tagmanager.googleapis.com/tagmanager/v2/accounts
Query parameters
Parameters | |
---|---|
includeGoogleTags |
Also retrieve accounts associated with Google Tag when true. |
pageToken |
Continuation token for fetching the next page of results. |
Request body
The request body must be empty.
Response body
List Accounts Response.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"account": [
{
object ( |
Fields | |
---|---|
account[] |
List of GTM Accounts that a user has access to. |
nextPageToken |
Continuation token for fetching the next page of results. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/tagmanager.edit.containers
https://www.googleapis.com/auth/tagmanager.manage.accounts
https://www.googleapis.com/auth/tagmanager.readonly
For more information, see the OAuth 2.0 Overview.