CSS API की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
CSS API का इस्तेमाल करके, अपनी सीएसएस को मैनेज किया जा सकता है. साथ ही, सीएसएस प्रॉडक्ट के पोर्टफ़ोलियो को कंट्रोल किया जा सकता है.
CSS API, Content API for Shopping में सीएसएस की सुविधाओं का नया डिज़ाइन है.
CSS API बनाम Merchant API
अपने प्रॉडक्ट को असरदार तरीके से मैनेज करने के लिए, CSS API और Merchant API के बीच के अंतर को समझना ज़रूरी है. हर एपीआई का मकसद अलग होता है. साथ ही, ये अलग-अलग तरह के खातों और आईडी स्पेस पर काम करते हैं:
CSS API (v1): इस एपीआई का इस्तेमाल, सीएसएस खातों और उनसे जुड़े सीएसएस प्रॉडक्ट को मैनेज करने से जुड़ी सभी सुविधाओं के लिए करें. यह एपीआई, css.googleapis.com
होस्टनेम का इस्तेमाल करता है. साथ ही, प्रॉडक्ट से जुड़ी कार्रवाइयों के लिए, सीएसएस डोमेन आईडी की ज़रूरत होती है.
- उदाहरण:
POST https://css.googleapis.com/v1/accounts/{cssDomainId}/cssProductInputs:insert
Merchant API
(v1): इस एपीआई का इस्तेमाल, स्टैंडर्ड Merchant Center खातों और उनके प्रॉडक्ट से जुड़ी सभी सुविधाओं के लिए करें. यह एपीआई, merchantapi.googleapis.com
होस्टनेम का इस्तेमाल करता है. इसके लिए, स्टैंडर्ड Merchant Center आईडी की ज़रूरत होती है.
- उदाहरण:
POST https://merchantapi.googleapis.com/v1/accounts/{merchantId}/productInputs:insert
अहम जानकारी: प्रॉडक्ट एंडपॉइंट के लिए Merchant API के साथ CSS डोमेन आईडी का इस्तेमाल न करें. साथ ही, CSS API के प्रॉडक्ट एंडपॉइंट के साथ Merchant Center आईडी का इस्तेमाल न करें. गलत एपीआई के साथ गलत आईडी का इस्तेमाल करने पर गड़बड़ियां होंगी.
CSS API और Merchant API, दोनों मिलकर Content API for Shopping (v2.1) की जगह लेते हैं. अब इसका इस्तेमाल नहीं किया जाना चाहिए.
CSS API पर अपग्रेड करने की कुछ वजहें यहां दी गई हैं:
ज़्यादा जानकारी के लिए, शुरू करें लेख पढ़ें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-13 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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-08-13 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe CSS API enables managing CSS and controlling your CSS Products portfolio.\u003c/p\u003e\n"],["\u003cp\u003eThe CSS API offers new features, improved alignment with Google's API improvement proposals, and updated documentation and samples.\u003c/p\u003e\n"],["\u003cp\u003eUpgrading from the Content API for Shopping to the CSS API is recommended.\u003c/p\u003e\n"]]],[],null,["# CSS API overview\n\nYou can use the CSS API to manage your CSS and control your CSS Products\nportfolio.\n\nThe CSS API is a redesign of the CSS features in [Content API for\nShopping](/shopping-content).\n\nCSS API versus Merchant API\n---------------------------\n\nUnderstanding the distinction between the CSS API and the Merchant API is key\nto effectively managing your products. Each API serves a different purpose and\noperates on different account types and ID spaces:\n\n- **CSS API (v1):** Use this API for all functionalities related to managing\n CSS accounts and their associated CSS products. This API uses the\n `css.googleapis.com` hostname and requires a **CSS Domain ID** for product\n operations.\n\n - Example: `POST https://css.googleapis.com/v1/accounts/{cssDomainId}/cssProductInputs:insert`\n- **[Merchant API](https://developers.google.com/merchant/api/overview)\n (v1):** Use this API for all functionalities related to\n standard Merchant Center accounts and their products. This API uses the\n `merchantapi.googleapis.com` hostname and requires a standard **Merchant\n Center ID**.\n\n - Example: `POST https://merchantapi.googleapis.com/v1/accounts/{merchantId}/productInputs:insert`\n\n**Key takeaway:** Don't use a CSS Domain ID with the Merchant API for product\nendpoints, and don't use a Merchant Center ID with the CSS API product\nendpoints. Using the wrong ID with the wrong API will result in errors.\n\nThe CSS API and Merchant API together replace the older Content API for Shopping\n(v2.1), which should no longer be used.\n\nHere are some reasons to upgrade to the CSS API:\n\n- New features.\n- Improved alignment with Google's [API improvement proposals](//google.aip.dev/).\n- Updated documentation and [samples](/comparison-shopping-services/api/code-samples).\n\nSee [Get started](/comparison-shopping-services/api/guides/quickstart) for more\ninformation."]]