পণ্য ডেটা এবং আপনার বণিক আইডি সহ একটি insert অনুরোধ করুন:
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products
আপনি একটি HTTP 200 স্ট্যাটাস কোড পেয়েছেন তা যাচাই করুন।
একটি পণ্য দেখুন
আপনার মার্চেন্ট আইডি এবং পণ্যের পণ্য আইডি দিয়ে একটি get করুন:
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products/productId
আপনি একটি HTTP 200 স্ট্যাটাস কোড এবং পণ্যের জন্য JSON ডেটা পেয়েছেন তা যাচাই করুন।
একটি পণ্য আপডেট করুন
একটি পণ্যের জন্য নতুন JSON তৈরি করুন। উদাহরণস্বরূপ, JSON availability: in stock , উপলভ্যতায়: আপনি যে পণ্যটি insert কল পরীক্ষা করতে ব্যবহার করেছিলেন তার জন্য availability: out of stock ৷
নতুন পণ্য ডেটা এবং আপনার বণিক আইডি সহ একটি insert অনুরোধ করুন:
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products
আপনি একটি HTTP 200 স্ট্যাটাস কোড পেয়েছেন তা যাচাই করুন। কমপক্ষে পাঁচ মিনিট পরে, আপনি আপডেট করা মান, প্রাপ্যতা নিশ্চিত করার জন্য আরেকটি get করতে পারেন availability: out of stock , প্রয়োগ করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-01-18 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"]]