rocket Meet
Merchant API - কেনাকাটার জন্য Content API-এর অফিসিয়াল উত্তরসূরি৷
update নতুন মার্চেন্ট এপিআই বৈশিষ্ট্য, বাগ ফিক্স এবং আপডেটের
সর্বশেষ পান ।
add_alert নোট: কেনাকাটার জন্য সামগ্রী API 18 আগস্ট, 2026-এ সূর্যাস্ত হবে।
পণ্য সম্পদ পরীক্ষা
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এখানে কিছু উদাহরণ রয়েছে যা আপনি products
সম্পদের সাথে আপনার বাস্তবায়ন পরীক্ষা করতে ব্যবহার করতে পারেন।
একটি পণ্য যোগ করুন
একটি পণ্যের জন্য বৈধ JSON গঠন করুন।
পণ্য ডেটা এবং আপনার বণিক আইডি সহ একটি 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
, প্রয়োগ করা হয়েছে।
একটি পণ্য মুছুন
আপনার মার্চেন্ট আইডি এবং পণ্যের productId
দিয়ে একটি delete
অনুরোধ করুন:
DELETE https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products/productId
আপনি একটি HTTP 204
স্ট্যাটাস কোড পেয়েছেন তা যাচাই করুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis page provides examples of how to interact with the \u003ccode\u003eproducts\u003c/code\u003e resource using the Content API for Shopping.\u003c/p\u003e\n"],["\u003cp\u003eYou can add a new product by constructing valid JSON and making an \u003ccode\u003einsert\u003c/code\u003e request.\u003c/p\u003e\n"],["\u003cp\u003eView an existing product using a \u003ccode\u003eget\u003c/code\u003e request with your merchant ID and the product ID.\u003c/p\u003e\n"],["\u003cp\u003eUpdate a product's information by making an \u003ccode\u003einsert\u003c/code\u003e request with the updated JSON data.\u003c/p\u003e\n"],["\u003cp\u003eDelete a product using a \u003ccode\u003edelete\u003c/code\u003e request with your merchant ID and the product ID.\u003c/p\u003e\n"]]],["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"],null,["# Testing the products resource\n\nHere are some examples you can use to test your implementation with the\n`products` resource.\n\nAdd a product\n-------------\n\n1. Construct [valid JSON for a\n product](/shopping-content/reference/rest/v2.1/products#resource:-product).\n\n2. Make an [`insert`\n request](/shopping-content/reference/rest/v2.1/products/insert#http-request)\n with the product data and your merchant ID:\n\n POST https://shoppingcontent.googleapis.com/content/v2.1/\u003cvar translate=\"no\"\u003emerchantId\u003c/var\u003e/products\n\n3. Verify that you receive an `HTTP 200` status code.\n\nView a product\n--------------\n\n1. Make a [`get`\n request](/shopping-content/reference/rest/v2.1/products/get#http-request)\n with your merchant ID, and the product's\n [productId](/shopping-content/guides/products/product-id):\n\n GET https://shoppingcontent.googleapis.com/content/v2.1/\u003cvar translate=\"no\"\u003emerchantId\u003c/var\u003e/products/\u003cvar translate=\"no\"\u003eproductId\u003c/var\u003e\n\n2. Verify that you receive an `HTTP 200` status code, and the JSON data for the\n product.\n\nUpdate a product\n----------------\n\n1. Construct the new JSON for a product. For example, change a single field in\n the JSON `availability: in stock`, to `availability: out of stock` for the\n product you used to test the `insert` call.\n\n2. Make an [`insert`\n request](/shopping-content/reference/rest/v2.1/products/insert#http-request)\n with the new product data and your merchant ID:\n\n POST https://shoppingcontent.googleapis.com/content/v2.1/\u003cvar translate=\"no\"\u003emerchantId\u003c/var\u003e/products\n\n3. Verify that you receive an `HTTP 200` status code. After at least five\n minutes, you can make another `get` request to confirm the updated value,\n `availability: out of stock`, was applied.\n\nDelete a product\n----------------\n\n1. Make a [`delete`\n request](/shopping-content/reference/rest/v2.1/products/delete#http-request)\n with your merchant ID, and the product's\n [`productId`](/shopping-content/guides/products/product-id):\n\n DELETE https://shoppingcontent.googleapis.com/content/v2.1/\u003cvar translate=\"no\"\u003emerchantId\u003c/var\u003e/products/\u003cvar translate=\"no\"\u003eproductId\u003c/var\u003e\n\n2. Verify that you receive an `HTTP 204` status code."]]