# REST Resource: accounts

- [Resource: Account](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts#Account)
  - [JSON representation](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts#Account.SCHEMA_REPRESENTATION)
- [AccountType](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts#AccountType)
- [Methods](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts#METHODS_SUMMARY)

## Resource: Account

Information about CSS/MC account.

| JSON representation |
|---|
| ``` { "name": string, "fullName": string, "labelIds": [ string ], "automaticLabelIds": [ string ], "accountType": enum (`https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts#AccountType`), "displayName": string, "homepageUri": string, "parent": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The label resource name. Format: accounts/{account} |
| `fullName` | `string` Output only. Immutable. The CSS/MC account's full name. |
| `labelIds[]` | `string (https://developers.google.com/discovery/v1/type-format format)` Manually created label IDs assigned to the CSS/MC account by a CSS parent account. |
| `automaticLabelIds[]` | `string (https://developers.google.com/discovery/v1/type-format format)` Automatically created label IDs assigned to the MC account by CSS Center. |
| `accountType` | ``enum (`https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts#AccountType`)`` Output only. The type of this account. |
| `displayName` | `string` The CSS/MC account's short display name. |
| `homepageUri` | `string` Output only. Immutable. The CSS/MC account's homepage. |
| `parent` | `string` The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account. Note: For MC sub-accounts, this is also the CSS domain that is the parent resource of the MCA account, since we are effectively flattening the hierarchy." |

## AccountType

The account type.

| Enums ||
|---|---|
| `ACCOUNT_TYPE_UNSPECIFIED` | Unknown account type. |
| `CSS_GROUP` | CSS group account. |
| `CSS_DOMAIN` | CSS domain account. |
| `MC_PRIMARY_CSS_MCA` | MC Primary CSS MCA account. |
| `MC_CSS_MCA` | MC CSS MCA account. |
| `MC_MARKETPLACE_MCA` | MC Marketplace MCA account. |
| `MC_OTHER_MCA` | MC Other MCA account. |
| `MC_STANDALONE` | MC Standalone account. |
| `MC_MCA_SUBACCOUNT` | MC MCA sub-account. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts/get` | Retrieves a single CSS/MC account by ID. |
| ### `https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts/listChildAccounts` | Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name. |
| ### `https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts/updateLabels` | Updates labels assigned to CSS/MC accounts by a CSS domain. |