Method: variables.get

Full name: accounts.containers.variables.get

Gets a GTM Variable.

HTTP request

GET https://tagmanager.googleapis.com/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}

Path parameters

Parameters
accountId

string

The GTM Account ID.

containerId

string

The GTM Container ID.

variableId

string

The GTM Variable ID.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Variable.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the OAuth 2.0 Overview.