Method: accounts.products.update
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Manufacturer Center खाते में मौजूद प्रॉडक्ट के एट्रिब्यूट की वैल्यू डालता है या उन्हें अपडेट करता है.
इस तरीके का इस्तेमाल करके, दिए गए एट्रिब्यूट वाला प्रॉडक्ट बनाया जाता है. अगर प्रॉडक्ट पहले से मौजूद है, तो सभी एट्रिब्यूट को नए एट्रिब्यूट से बदल दिया जाता है. अपलोड करते समय, कम से कम जांच की जाती है. किसी प्रॉडक्ट को मान्य बनाने के लिए, सभी ज़रूरी एट्रिब्यूट की वैल्यू मौजूद होनी चाहिए. ऐसा हो सकता है कि एपीआई के किसी प्रॉडक्ट के लिए नया अपलोड स्वीकार करने के बाद, समस्याएं दिखें. साथ ही, यह भी हो सकता है कि किसी अमान्य प्रॉडक्ट से, किसी मान्य प्रॉडक्ट की जानकारी बदल जाए. इसका पता लगाने के लिए, आपको प्रॉडक्ट को वापस लाना होगा. साथ ही, नया वर्शन उपलब्ध होने के बाद, उसमें मौजूद समस्याओं की जांच करनी होगी.
अपलोड किए गए एट्रिब्यूट को वापस पाने से पहले, उन्हें प्रोसेस करना ज़रूरी है. तब तक, नए प्रॉडक्ट उपलब्ध नहीं होंगे. साथ ही, पहले अपलोड किए गए प्रॉडक्ट वापस लाने पर, प्रॉडक्ट की मूल स्थिति वापस आ जाएगी.
एचटीटीपी अनुरोध
PUT https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}
यह यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
accounts/{account_id} फ़ॉर्मैट में पैरंट आईडी.
account_id - Manufacturer Center खाते का आईडी.
|
name |
string
नाम {targetCountry}:{contentLanguage}:{productId} फ़ॉर्मैट में होना चाहिए. targetCountry - CLDR टेरिटरी कोड के तौर पर, प्रॉडक्ट का टारगेट देश (उदाहरण के लिए, US).
contentLanguage - प्रॉडक्ट के कॉन्टेंट की भाषा, दो अक्षरों वाले ISO 639-1 भाषा कोड के तौर पर (उदाहरण के लिए, en).
productId - प्रॉडक्ट का आईडी. ज़्यादा जानकारी के लिए, https://support.google.com/manufacturers/answer/6124116#id पर जाएं.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Attributes
का उदाहरण है.
जवाब का मुख्य भाग
अगर अनुरोध पूरा हो जाता है, तो जवाब के मुख्य हिस्से में एक खाली JSON ऑब्जेक्ट होता है.
अनुमति के स्कोप
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/manufacturercenter
ज़्यादा जानकारी के लिए, OAuth 2.0 Overview देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-17 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-17 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eUpdates or creates product attributes within a Manufacturer Center account, potentially overwriting existing data.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing product details like target country, content language, and a unique product ID within the request.\u003c/p\u003e\n"],["\u003cp\u003eUploaded product data needs processing time before becoming visible or retrievable in its updated state.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003ePUT\u003c/code\u003e method and specific path parameters for identifying the account and product in the request URL.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/manufacturercenter\u003c/code\u003e scope for access.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.products.update\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nInserts or updates the attributes of the product in a Manufacturer Center account.\n\nCreates a product with the provided attributes. If the product already exists, then all attributes are replaced with the new ones. The checks at upload time are minimal. All required attributes need to be present for a product to be valid. Issues may show up later after the API has accepted a new upload for a product and it is possible to overwrite an existing valid product with an invalid product. To detect this, you should retrieve the product and check it for issues once the new version is available.\n\nUploaded attributes first need to be processed before they can be retrieved. Until then, new products will be unavailable, and retrieval of previously uploaded products will return the original state of the product.\n\n### HTTP request\n\n`PUT https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account. |\n| `name` | `string` Name in the format `{targetCountry}:{contentLanguage}:{productId}`. `targetCountry` - The target country of the product as a CLDR territory code (for example, US). `contentLanguage` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `productId` - The ID of the product. For more information, see \u003chttps://support.google.com/manufacturers/answer/6124116#id\u003e. |\n\n### Request body\n\nThe request body contains an instance of [Attributes](/manufacturers/reference/rest/v1/Attributes).\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/manufacturercenter`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]