GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products/productId
Pastikan Anda menerima kode status HTTP 200, dan data JSON untuk
Google.
Memperbarui produk
Buat JSON baru untuk suatu produk. Misalnya, ubah satu {i>field<i} pada
availability: in stock JSON, menjadi availability: out of stock untuk
yang Anda gunakan untuk menguji panggilan insert.
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products
Verifikasi bahwa Anda menerima kode status HTTP 200. Setelah minimal lima
menit, Anda dapat membuat permintaan get lagi untuk mengonfirmasi nilai yang diperbarui,
availability: out of stock diterapkan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-08-22 UTC."],[[["This page provides examples of how to interact with the `products` resource using the Content API for Shopping."],["You can add a new product by constructing valid JSON and making an `insert` request."],["View an existing product using a `get` request with your merchant ID and the product ID."],["Update a product's information by making an `insert` request with the updated JSON data."],["Delete a product using a `delete` request with your merchant ID and the product ID."]]],["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"]]