rocket
Meet
Merchant API
– phiên bản chính thức thay thế Content API for Shopping.
updateNhận thông tin mới nhất
về các tính năng mới, bản sửa lỗi và thông tin cập nhật về bản phát hành của Merchant API.
point_of_sale
Tìm hiểu cách quản lý doanh nghiệp và sản phẩm của bạn trên Google, cũng như cách truy cập vào dữ liệu, thông tin chi tiết và các chức năng riêng biệt ở quy mô lớn theo phương thức lập trình.
Bắt đầu sử dụng Merchant API ngay hôm nay!
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tóm tắt
Một số dữ liệu sản phẩm như giá và tình trạng còn hàng sẽ thay đổi tự nhiên theo thời gian.
Bạn cần duy trì nguồn cấp dữ liệu sản phẩm thường xuyên để thông tin này luôn được cập nhật.
Bạn có thể sử dụng nguồn cấp dữ liệu bổ sung và API Sản phẩm để cập nhật dữ liệu sản phẩm. Bạn chỉ có thể tạo nguồn cấp dữ liệu bổ sung trong giao diện người dùng Merchant Center và các nguồn cấp dữ liệu này phải được liên kết với một nguồn cấp dữ liệu chính.
Bạn cũng có thể dùng tính năng tự động cập nhật mặt hàng để luôn cập nhật thông tin về giá và tình trạng còn hàng. Merchant Center có thể sử dụng dữ liệu có cấu trúc nhúng trên trang web của bạn để cập nhật sản phẩm nếu giá hoặc tình trạng còn hàng khác với thông tin hiện đang lưu trữ trong Merchant Center.
Tính năng tự động cập nhật mặt hàng được thiết kế để khắc phục các vấn đề nhỏ về giá và tình trạng còn hàng của sản phẩm, chứ không phải là phương pháp chính để cập nhật dữ liệu sản phẩm. Bạn nên sử dụng các API này cùng với nguồn cấp dữ liệu bổ sung và Content API.
Để cập nhật thông tin sản phẩm bằng Content API for Shopping, hãy sử dụng Products API (API Sản phẩm).
Bạn có thể sử dụng phương thức insert và update để tạo và cập nhật từng mục riêng lẻ.
Giống như việc chèn và cập nhật sản phẩm, nhiều thông tin cập nhật về kho hàng có thể được gộp vào một lệnh gọi Content API for Shopping duy nhất bằng phương thức products.custombatch.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eProduct data like price and availability requires regular updates to stay current.\u003c/p\u003e\n"],["\u003cp\u003eSupplemental feeds, created through the Merchant Center UI and linked to a primary feed, offer a way to update product data.\u003c/p\u003e\n"],["\u003cp\u003eAutomatic item updates provide a way to fix minor discrepancies in price and availability by utilizing structured data from your website.\u003c/p\u003e\n"],["\u003cp\u003eThe Products API allows for programmatic updates of product information, including using methods for creating, updating, and batching changes.\u003c/p\u003e\n"]]],[],null,["# Maintain a product feed\n\nSummary\n-------\n\nSome product data, like price and availability, naturally changes over time.\nYou need to maintain your product feed regularly to keep this information\nup-to-date.\n\nYou can use supplemental feeds and the [Products API](/shopping-content/guides/products/products-api) to update product\ndata. Supplemental feeds can only be created in the\n[Merchant Center UI](https://merchants.google.com), and they must be linked to a primary\nfeed.\n\nManual steps\n------------\n\nTo maintain your inventory with supplemental feeds, see [Create a supplemental\nfeed](//support.google.com/merchants/answer/7439058#supplemental).\n\nYou can also use [automatic item updates](//support.google.com/merchants/answer/3246284) to keep\nprice and availability information up-to-date. Merchant Center can use embedded\nstructured data from your website to update products if the price or\navailability differs from the information currently stored in the Merchant Center.\n\nAutomatic item updates are designed to fix small problems with product\nprice and availability, not to be the main method of updating product data. You\nshould use them in addition to supplemental feeds and the Content API.\n\nTo enable automatic item updates, follow the steps in\n[About automatic item updates](//support.google.com/merchants/answer/3246284).\n\nAutomatic steps\n---------------\n\nTo update information product information with the Content API for Shopping,\nuse the [Products API](/shopping-content/guides/products/products-api).\n\nYou can use the [`insert`](/shopping-content/guides/products/products-api#productsinsert) and [`update`](/shopping-content/guides/products/products-api#productsupdate) methods to create and update\nindividual items.\n\nLike product inserts and updates, multiple inventory updates can be batched into\na single Content API for Shopping call using the [`products.custombatch`](/shopping-content/reference/rest/v2.1/products/custombatch) method."]]