Method: accounts.get

  • The method accounts.get retrieves a single CSS/MC account by ID.

  • The HTTP request uses a GET method with a URL format including the account name.

  • Path parameters include the required name parameter to specify the account.

  • An optional parent query parameter is used when retrieving MC account information.

  • The request body must be empty, and the successful response body contains an Account instance.

  • The method requires the https://www.googleapis.com/auth/content authorization scope.

Retrieves a single CSS/MC account by ID.

HTTP request

GET https://css.googleapis.com/v1/{name=accounts/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the managed CSS/MC account. Format: accounts/{account}

Query parameters

Parameters
parent

string

Optional. Only required when retrieving MC account information. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/content

For more information, see the OAuth 2.0 Overview.