Method: accounts.listChildAccounts
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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)."]]