GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products/productId
Xác minh rằng bạn nhận được mã trạng thái HTTP 200 và dữ liệu JSON cho sản phẩm.
Cập nhật sản phẩm
Tạo JSON mới cho một sản phẩm. Ví dụ: thay đổi một trường trong JSON availability: in stock thành availability: out of stock cho sản phẩm mà bạn đã dùng để kiểm thử lệnh gọi insert.
Đưa ra insertyêu cầu bằng dữ liệu sản phẩm mới và mã người bán của bạn:
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products
Xác minh rằng bạn nhận được mã trạng thái HTTP 200. Sau ít nhất 5 phút, bạn có thể gửi một yêu cầu get khác để xác nhận rằng giá trị đã cập nhật availability: out of stock đã được áp dụng.
[[["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: 2026-07-06 UTC."],[],["To add a product, create valid JSON for it, then send an `insert` request via POST with the data and merchant ID, expecting an `HTTP 200` response. To view, send a `get` request via GET with the merchant ID and product ID, confirming an `HTTP 200` status and the JSON. To update, create new JSON, make an `insert` POST request, and verify `HTTP 200` then check with `get`. To delete, send a `delete` request via DELETE with the ID, verifying an `HTTP 204` status.\n"]]