迁移购物比较服务 (CSS) 管理
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助 Content API for Shopping,您可以利用 CSS 标签管理功能,代表支持 CSS 计划的国家/地区的商家在 Google 上投放购物广告。
借助 Content API for Shopping,CSS 网域和 CSS 组可以使用标签整理其关联的账号。CSS 网域可以列出、标记和过滤与网域相关联的 Merchant Center 账号。CSS 组可以标记并列出与组关联的 CSS 网域。
Merchant API 更新简化了购物比较服务 (CSS) 的管理。Content API for Shopping 的功能会迁移到 Accounts
和 AccountLabels
服务中。
最显著的变化是 Csses
服务已被弃用。此功能将成为更强大的 Accounts
服务的一部分,从而打造一个可同时管理 CSS 账号和 Merchant Center 账号的平台。
服务和方法映射
这些服务在 Merchant API 中继续提供,但进行了一些更新。以下是映射。
服务 |
Content API for Shopping |
Merchant API |
|
方法 |
说明 |
方法 |
说明 |
CSS |
获取 |
根据 ID 检索单个 CSS 网域。 |
此服务已弃用。使用 Accounts 服务管理 CSS 网域。
|
|
列表 |
列出与 CSS 组关联的 CSS 网域。 |
|
UpdateLabels |
更新由 CSS 网域的 CSS 组分配给该网域的标签。 |
账号
|
获取
|
检索 Merchant Center 账号。(CSS 视图) |
获取 |
使用 Accounts 管理 CSS 和 Merchant Center 账号的相关信息。
get 方法按 ID 检索单个 CSS 或 Merchant Center 账号。
|
|
列表
|
列出您账号中的子账号。(CSS 视图) |
ListChildAccounts |
列出 CSS 父级下的 CSS 或 Merchant Center 账号,并可选择按标签 ID 和账号名称进行过滤。
|
|
UpdateLabels |
更新由 CSS 用户分配给账号的标签。 |
UpdateLabels |
更新 CSS 父级账号分配给 CSS 或 Merchant Center 账号的标签。 |
accounts.labels
|
制作 |
创建未分配给任何账号的标签。 |
创建 |
使用 AccountLabels 管理 CSS 和 Merchant Center 账号标签。
创建未分配给任何账号的标签。
|
|
删除 |
删除标签并将其从所有已分配的账号中移除。 |
删除 |
删除标签,并将其从所有已分配的账号中移除。 |
|
列表 |
列出分配给账号的标签。 |
列表 |
列出分配给账号的标签。 |
|
补丁 |
更新标签。 |
补丁 |
更新标签。 |
代码示例
如需了解标签和列表 API,请参阅
参考
您可以在 CSS API 中找到 Content API for Shopping 的 CSS 服务逻辑。如需了解详情,请参阅 CSS API 概览。
另请参阅:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Migrate Comparison Shopping Services (CSS) management\n\nWith Content API for Shopping, you can use [CSS label\nmanagement](/shopping-content/guides/css-label-management) to place Shopping ads\non Google on behalf of merchants in countries where the CSS program is\navailable.\n\nContent API for Shopping allows CSS domains and CSS groups to organize their\nassociated accounts using labels. CSS domains can list, label, and filter\nMerchant Center accounts associated with a domain. CSS groups can label and list\nthe CSS domains affiliated with a group.\n\nMerchant API updates and streamlines the management of Comparison Shopping\nServices (CSS). Functionality from Content API for Shopping migrates into the\n`Accounts` and `AccountLabels` services.\n\nThe most significant change is the deprecation of the `Csses` service. This\nfunctionality becomes part of the more powerful `Accounts` service, creating a\nsingle place to manage both CSS and Merchant Center accounts.\n\nService and method mapping\n--------------------------\n\nThese services continue in Merchant API, with a few updates. Here's a mapping.\n\n|--------------------------------------------------------------------------|-------------------------------------------------------------|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Service** | **Content API for Shopping** || **Merchant API** ||\n| | **Method** | **Description** | **Method** | **Description** |\n| [CSS](/shopping-content/reference/rest/v2.1/csses) | Get | Retrieves a single CSS domain by ID. | This service is deprecated. Use the `Accounts` service to manage CSS domains. ||\n| | [List](/shopping-content/reference/rest/v2.1/csses/list) | Lists CSS domains affiliated with a CSS group. | This service is deprecated. Use the `Accounts` service to manage CSS domains. ||\n| | UpdateLabels | Updates labels that are assigned to a CSS domain by its CSS group. | This service is deprecated. Use the `Accounts` service to manage CSS domains. ||\n| [Accounts](/shopping-content/reference/rest/v2.1/accounts) | [Get](/shopping-content/reference/rest/v2.1/accounts/get) | Retrieves a Merchant Center account. (CSS view) | [Get](/comparison-shopping-services/api/reference/rest/v1/accounts/get) | Use `Accounts` to manage information about CSS and Merchant Center accounts. A `get` method retrieves a single CSS or Merchant Center account by ID. |\n| | [List](/shopping-content/reference/rest/v2.1/accounts/list) | Lists the sub-accounts in your account. (CSS view) | [ListChildAccounts](/comparison-shopping-services/api/reference/rest/v1/accounts/listChildAccounts) | Lists the CSS or Merchant Center accounts under the CSS parent, and, optionally, filters by label ID and account name. |\n| | UpdateLabels | Updates labels that are assigned to the account by the CSS user. | [UpdateLabels](/comparison-shopping-services/api/reference/rest/v1/accounts/updateLabels) | Updates labels assigned to CSS or Merchant Center accounts by a CSS parent account. |\n| [accounts.labels](/shopping-content/reference/rest/v2.1/accounts.labels) | Create | Creates a label, not assigned to any account. | [Create](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/create) | Use `AccountLabels` to manage CSS and Merchant Center account labels. Creates a label that is not assigned to any account. |\n| | Delete | Deletes a label and removes it from all accounts to which it was assigned. | [Delete](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/delete) | Deletes a label, removing it from all accounts to which it was assigned. |\n| | List | Lists the labels assigned to an account. | [List](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/list) | Lists the labels assigned to an account. |\n| | Patch | Updates a label. | [Patch](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/patch) | Updates a label. |\n\nCode samples\n------------\n\nFor the labels and list API, see\n\n- [List CSS accounts](/comparison-shopping-services/api/code-samples/accounts/list-css-accounts)\n- [List account labels](/comparison-shopping-services/api/code-samples/account-labels/list-account-labels)\n\nReference\n---------\n\nYou can find the CSS service logic from the Content API for Shopping in the CSS\nAPI. For more information, see [CSS API\noverview](/comparison-shopping-services/api/overview).\n\nSee also:\n\n- [gRPC](/comparison-shopping-services/api/reference/rpc)\n- [REST](/comparison-shopping-services/api/reference/rest)"]]