Method: accounts.products.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
列出 Manufacturer Center 账号中的所有商品。
HTTP 请求
GET https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
父级 ID,格式为 accounts/{account_id} 。 account_id - Manufacturer Center 账号的 ID。
|
查询参数
参数 |
pageSize |
integer
响应中可返回的商品状态数量上限,用于分页。
|
pageToken |
string
上一个请求返回的令牌。
|
include[] |
enum (ProductSection )
要包含在响应中的信息。系统将仅返回此处列出的部分。
|
响应正文
JSON 表示法 |
{
"products": [
{
object (Product )
}
],
"nextPageToken": string
} |
字段 |
products[] |
object (Product )
商品列表。
|
nextPageToken |
string
用于检索下一页商品状态的令牌。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/manufacturercenter
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-17。
[null,null,["最后更新时间 (UTC):2025-08-17。"],[[["\u003cp\u003eLists all products within a specified Manufacturer Center account.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by product information sections and pagination for large datasets.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/manufacturercenter\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eReturns a list of products and a token for retrieving subsequent pages if available.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.products.list\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.ListProductsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists all the products in a Manufacturer Center account.\n\n### HTTP request\n\n`GET https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Maximum number of product statuses to return in the response, used for paging. |\n| `pageToken` | `string` The token returned by the previous request. |\n| `include[]` | `enum (`[ProductSection](/manufacturers/reference/rest/v1/ProductSection)`)` The information to be included in the response. Only sections listed here will be returned. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------|\n| ``` { \"products\": [ { object (/manufacturers/reference/rest/v1/Product) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------|\n| `products[]` | `object (`[Product](/manufacturers/reference/rest/v1/Product)`)` List of the products. |\n| `nextPageToken` | `string` The token for the retrieval of the next page of product statuses. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/manufacturercenter`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]