Method: accounts.listChildAccounts
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-13 UTC.
[null,null,["Last updated 2025-05-13 UTC."],[[["\u003cp\u003eLists all child accounts under a specified CSS group or domain account, with optional filtering by label ID and account name.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003eaccounts.listChildAccounts\u003c/code\u003e method for retrieval, allowing pagination for large result sets.\u003c/p\u003e\n"],["\u003cp\u003eRequest parameters include parent account ID, page size, page token, label ID, and full name for filtering.\u003c/p\u003e\n"],["\u003cp\u003eResponse provides a list of child accounts and a token for retrieving subsequent pages if available.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.listChildAccounts\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListChildAccountsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.\n\n### HTTP request\n\n`GET https://css.googleapis.com/v1/{parent=accounts/*}:listChildAccounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent account. Must be a CSS group or domain. Format: accounts/{account} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 50 accounts will be returned. The maximum value is 100; values above 100 will be coerced to 100. |\n| `pageToken` | `string` Optional. A page token, received from a previous `accounts.listChildAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `accounts.listChildAccounts` must match the call that provided the page token. |\n| `labelId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` If set, only the MC accounts with the given label ID will be returned. |\n| `fullName` | `string` If set, only the MC accounts with the given name (case sensitive) will be returned. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for the `accounts.listChildAccounts` method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accounts\": [ { object (/comparison-shopping-services/api/reference/rest/v1/accounts#Account) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accounts[]` | `object (`[Account](/comparison-shopping-services/api/reference/rest/v1/accounts#Account)`)` The CSS/MC accounts returned for the specified CSS parent account. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]