Method: accounts.get

  • The content provides a guide for looking up a single account using an HTTP GET request.

  • The request requires a name path parameter specifying the account to look up in the format accounts/{account}.

  • The request body must be empty.

  • The response body contains an instance of an Account if the request is successful.

  • Authorization requires one of the specified OAuth scopes: analytics.readonly or analytics.edit.

Lookup for a single Account.

HTTP request

GET https://analyticsadmin.googleapis.com/v1alpha/{name=accounts/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100"

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/analytics.readonly
  • https://www.googleapis.com/auth/analytics.edit