rocket
मिलें
Merchant API
से. यह Content API for Shopping की जगह लेने वाला आधिकारिक एपीआई है.
update
Merchant API की नई सुविधाओं, गड़बड़ियों को ठीक करने के तरीके, और अपडेट के बारे में
अपडेट पाएं.
add_alert
ध्यान दें: Content API for Shopping, 18 अगस्त, 2026 को बंद हो जाएगा.
प्रॉडक्ट ID
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Shopping के लिए Content API में, कई तरह के प्रॉडक्ट आईडी दिए गए हैं:
- ऑफ़र आईडी
offerId
एक ऐसी स्ट्रिंग होती है जो किसी व्यापारी या कंपनी के किसी प्रॉडक्ट को असाइन की जाती है. इस आईडी से किसी
प्रॉडक्ट की जानकारी मिलती है.
offerId
, Merchant Center के डेटाबेस में मौजूद ऑफ़र के सेट के लिए यूनीक होता है. आम तौर पर, यह संख्या का नंबर होता है.
offerId
, कंपनी के प्रॉडक्ट का इंटरनल SKU नंबर हो सकता है.
- REST आईडी
- REST आईडी, Google के असाइन किए गए प्रॉडक्ट का यूनीक आइडेंटिफ़ायर होता है.
- REST आईडी, REST API कॉल के लिए
productId
है.
REST आईडी, online:en:label:1111111111
फ़ॉर्मैट में इकट्ठा किए जाते हैं. REST आईडी के ये चार हिस्से होते हैं, जिन्हें कोलन से अलग किया जाता है:
- चैनल ("ऑनलाइन" या "स्थानीय")
- कॉन्टेंट की भाषा (दो अक्षर वाले नाम का इस्तेमाल करके, जैसे कि
en
या fr
)
- फ़ीड का लेबल, टारगेट किए गए देश के लिए दो अक्षरों का कोड हो सकता है. उदाहरण के लिए,
US
या FR
- ऑफ़र आईडी
इसे आपने channel:contentLanguage:feedLabel:offerId
के तौर पर एक साथ रखा है. उदाहरण के लिए, online:en:US:1111111111
.
- बाहरी सेलर का आईडी (मार्केटप्लेस)
मार्केटप्लेस
को, मल्टी-सेलर वाले खाते में अपलोड किए गए ऑफ़र के लिए,
external_seller_id
असाइन करना होगा. इस फ़ील्ड से किसी सेलर की जानकारी मिलती है.
external_seller_id
की वैल्यू केस-सेंसिटिव (बड़े और छोटे अक्षरों में अंतर) होती हैं. इसलिए, इन्हें इन ज़रूरी शर्तों को पूरा करना होगा:
- लंबाई में 1-50 वर्ण
- सिर्फ़ अक्षर और अंक दोनों ASCII वर्ण, और अंडरस्कोर (_), हाइफ़न (-), विरामचिह्न (.) और टिल्ड (~)
यह अंदरूनी seller_id
फ़ील्ड से अलग है.
नीचे दी गई टेबल में ऐसे कुछ आईडी की खास जानकारी दी गई है जो किसी प्रॉडक्ट से जोड़े जा सकते हैं:
एट्रिब्यूट |
ब्यौरा |
उदाहरण |
नोट |
offerId |
किसी व्यापारी की ओर से किसी प्रॉडक्ट को असाइन किया गया आईडी. |
1111111111 |
स्ट्रिंग डेटा टाइप, प्रॉडक्ट के ऑफ़र के लिए यूनीक आइडेंटिफ़ायर. |
REST आईडी |
Google की ओर से किसी प्रॉडक्ट को असाइन किया गया आईडी. channel:contentLanguage:feedLabel:offerId फ़ॉर्मैट में. |
online:en:label:1111111111 |
पूरा आईडी, जिसमें offerId भी शामिल है. |
productId |
एपीआई कॉल में REST आईडी के बारे में बताने के लिए इस्तेमाल किया जाता है. |
online:en:label:1111111111 |
यह किसी प्रॉडक्ट का REST आईडी है. |
id |
REST आईडी और productId के समान मान. |
online:en:label:1111111111 |
इसका इस्तेमाल productId के बारे में बताने के लिए, प्रॉडक्ट के मुख्य हिस्से में किया जाता है. |
external_seller_id |
मार्केटप्लेस से चुना गया सेलर आईडी. |
example-Seller1 |
मल्टी-सेलर वाले खातों के लिए ज़रूरी है. इसमें 1 से 50 वर्ण होने चाहिए. केस सेंसिटिव (बड़े अक्षरों को बड़ा और छोटे अक्षरों को छोटा लिखना ज़रूरी है). अंक और विशेष वर्ण _, -, ., और ~
स्वीकार किए जाते हैं.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-13 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-13 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Merchant API is the new version of the Content API for Shopping and represents the future of product data integration with Google.\u003c/p\u003e\n"],["\u003cp\u003eThe beta version of the Merchant API is now available for developers to explore and help shape its future development.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can learn more about the benefits and features of the Merchant API, including how it can enhance integrations, in the official announcement blog post.\u003c/p\u003e\n"],["\u003cp\u003eProducts in the Merchant API are identified using various IDs, such as \u003ccode\u003eofferId\u003c/code\u003e, REST ID, \u003ccode\u003eproductId\u003c/code\u003e, and \u003ccode\u003eexternal_seller_id\u003c/code\u003e, each with specific characteristics and usage contexts.\u003c/p\u003e\n"],["\u003cp\u003eA comprehensive table provides detailed explanations and examples of different product ID attributes, outlining their purpose and format.\u003c/p\u003e\n"]]],["The beta version of the Merchant API, the new Content API for Shopping, is introduced. Merchants assign an `offerId` to products. Google assigns a unique REST ID in the format `channel:contentLanguage:feedLabel:offerId`; this is also the `productId` and `id` in API calls. Marketplaces assign `external_seller_id` to offers for multi-seller accounts, it has specific format requirements. The Merchant API offers integration improvements; details on this and providing feedback are available via a linked article.\n"],null,["# Product IDs\n\nHere are the different kinds of product IDs in the Content API for Shopping:\n\nOffer ID\n: An `offerId` is a string assigned to a product by a merchant. This ID\n represents an individual product.\n: `offerId` is unique to the set of offers in the Merchant Center database, and\n is usually a numeric sequential number.\n: `offerId` can be an internal SKU number that a merchant assigns to the product.\n\nREST ID\n: A REST ID is the unique identifier for a product assigned by Google.\n: REST ID is the `productId` for REST API calls.\n\n: REST IDs are aggregates with the format `online:en:label:1111111111`. The\n REST ID consists of the following 4 parts, separated by colons:\n\n 1. Channel (\"online\" or \"local\")\n 2. Content Language (using the 2-letter designation, for example `en` or `fr`)\n 3. Feed label (might be the two-letter code for the feed's target country, for example `US` or `FR`)\n 4. Offer ID\n\n: You put this together as `channel:contentLanguage:feedLabel:offerId`, for\n example, `online:en:US:1111111111`.\n\nExternal Seller ID (Marketplaces)\n\n: [Marketplaces](//support.google.com/merchants/answer/6363319)\n must assign an `external_seller_id` to offers uploaded to a multi-seller\n account. This field represents an individual seller.\n\n `external_seller_id` values are case-sensitive, and must meet the following\n criteria:\n\n - 1-50 characters in length\n - Only alphanumeric ASCII characters, and underscore (_), hyphen (-), period (.), and tilde (\\~)\n\n This isn't the same as the internal\n [`seller_id`](/shopping-content/reference/rest/v2.1/accounts) field.\n\nThe following table summarizes some of the IDs that can be associated with a\nproduct:\n\n| Attribute | Description | Example | Notes |\n|----------------------|---------------------------------------------------------------------------------------------------|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| `offerId` | An ID assigned to a product by a merchant. | `1111111111` | String data type, unique identifier for a product's offer. |\n| REST ID | An ID assigned to a product by Google. In the format `channel:contentLanguage:feedLabel:offerId`. | `online:en:label:1111111111` | Full ID including `offerId`. |\n| `productId` | Used to refer to the REST ID in API calls. | `online:en:label:1111111111` | This is the REST ID of a product. |\n| `id` | Same value as REST ID and `productId`. | `online:en:label:1111111111` | Used inside JSON body of a product to refer to its `productId`. |\n| `external_seller_id` | A seller ID chosen by the Marketplace. | `example-Seller1` | Required for multi-seller accounts. Must be 1-50 characters. Case-sensitive. Digits, and special characters _, -, ., and \\~ are accepted. |"]]