使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
2.3 自动同步
简介和业务影响
请务必频繁地自动同步商家目录和设置更改。这样可以避免客户的业务出现任何需要频繁变动(例如,促销价变更或缺货)的中断,从而尽可能增加客户的展示次数和点击次数。
技术指南
同步商品概览
借助 Products API,商家可以创建网店目录,即 Google 购物上所售商品和商品的列表。如需使用 Content API 创建和上传每件商品的信息,请使用 Products 资源,该资源包含商品数据规范中所述的字段,以及上传每件商品信息所需的一些其他字段。如需详细了解如何发出请求,请参阅发出请求。
我们建议尽可能将商家目录同步到 Content API,以便商家做出调整(例如价格)以反映准确的商品数据。
同步商品 - 建议和最佳做法
为了改善集成效果并提升最终用户体验,请遵循以下建议:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eFrequent and automated syncing of merchant catalogs and settings is crucial for preventing business disruptions and maximizing impressions and clicks.\u003c/p\u003e\n"],["\u003cp\u003eThe Products API enables merchants to create and manage their online store catalogs, reflecting accurate product data through frequent updates.\u003c/p\u003e\n"],["\u003cp\u003eGoogle recommends enriching product data, targeting free listings in multiple countries, using batch requests, and keeping product data current for optimal performance.\u003c/p\u003e\n"],["\u003cp\u003eTo avoid product expirations, merchants should update products before the 25-day expiration period using \u003ccode\u003eproducts.insert\u003c/code\u003e or \u003ccode\u003eproducts.update\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAdhering to API quotas and reviewing Google's best practices will ensure smooth integration and a better user experience.\u003c/p\u003e\n"]]],["Merchants should frequently and automatically sync their product catalogs to prevent business disruptions. Utilize the Products API to create online store catalogs, using the `products.update` method for changes like price or quantity. Send rich product data, target multiple countries, and use batch requests. Prevent product expirations by updating items every 25 days. Adhere to API quotas and consult the Best Practices guide to improve integration and end-user experience.\n"],null,["2.3 Auto Sync\n-------------\n\n### Introduction and Business Impact\n\n*** ** * ** ***\n\nIt is imperative to sync your merchants catalog and settings changes automatically and frequently. This prevents any disruption of their business with potential needed and fast changes (for example, sales prices changing or out of stock) which can help maximize their impressions and clicks.\n\n### Tech Guidance\n\n*** ** * ** ***\n\n#### Sync products Overview\n\nThe [Products API](https://developers.google.com/shopping-content/guides/products/overview) allows a merchant to create an online store catalog, which is the list of products and products that are available on Shopping.To create and upload per-product information using the Content API, use the [Products resource](https://developers.google.com/shopping-content/reference/rest/v2.1/products), which contains the fields described by the [Product data specification](https://support.google.com/merchants/answer/188494) along with some other fields needed for per-product information upload. For more information about making a request, see [Making Requests](https://developers.google.com/shopping-content/v2/making-requests).\n\nWe recommend syncing your merchants catalog to the content API as much as possible so merchants can make adjustments (for example, prices) to reflect accurate product data.\n\n#### Syncing products - Recommendations and best practices\n\nTo improve your integration and make the end user experience better, below are recommendations to follow:\n\n- **[Uploading rich product data](https://developers.google.com/shopping-content/guides/products/rich-product-data):** We recommend rich product data to help improve clicks and impressions.\n\n- **[Targeting free listings in multiple countries](https://developers.google.com/shopping-content/guides/targeting-ads-in-multiple-countries):** We recommend having your merchant send product data in the most optimal way by specifying which countries they'd like to target.\n\n- **[Batch request](https://developers.google.com/shopping-content/guides/how-tos/batch):** Sending a batch request lets you group several API calls, known as \"entries\" into one single HTTP request.\n\n- **[Keeping product data up-to-date at any time](https://developers.google.com/shopping-content/reference/rest/v2.1/products/update):** use `products.update` to partially update product attributes which often change (for example, `price`, `quantity`).\n\n- **[Avoid Product expirations](https://developers.google.com/shopping-content/guides/best-practices#update-items-before-they-expire):** Make sure to call [`products.insert`](https://developers.google.com/shopping-content/reference/rest/v2.1/products/insert) or [`products.update`](https://developers.google.com/shopping-content/reference/rest/v2.1/products/update) to reset the expiration time of the item before it expires. Ideally, updating products to match your merchants inventory \\& price changes is recommended. This needs to happen every 25 days, at the latest and we recommend not waiting longer.\n\n- **[Make sure to respect API quotas](https://developers.google.com/shopping-content/guides/limits):** To ensure you are able to send your requests without issues. You can contact the [Content API for Shopping support team](https://support.google.com/merchants/contact/shopping_api_support_form) to request an increase.\n\n- **[Best practices](https://developers.google.com/shopping-content/guides/best-practices):** Read the [API Best Practices guide](https://developers.google.com/shopping-content/guides/best-practices) to learn additional best practices."]]