Method: accounts.products.update
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি Manufacturer Center অ্যাকাউন্টে পণ্যের বৈশিষ্ট্য সন্নিবেশ বা আপডেট করে।
প্রদত্ত বৈশিষ্ট্য সহ একটি পণ্য তৈরি করে। যদি পণ্যটি ইতিমধ্যেই বিদ্যমান থাকে তবে সমস্ত বৈশিষ্ট্যগুলি নতুনগুলির সাথে প্রতিস্থাপিত হয়৷ আপলোডের সময় চেকগুলি ন্যূনতম। একটি পণ্য বৈধ হওয়ার জন্য সমস্ত প্রয়োজনীয় বৈশিষ্ট্য উপস্থিত থাকতে হবে। API একটি পণ্যের জন্য একটি নতুন আপলোড গ্রহণ করার পরে সমস্যাগুলি পরে দেখা যেতে পারে এবং একটি অবৈধ পণ্যের সাথে বিদ্যমান বৈধ পণ্যটি ওভাররাইট করা সম্ভব৷ এটি সনাক্ত করতে, আপনার পণ্যটি পুনরুদ্ধার করা উচিত এবং নতুন সংস্করণ উপলব্ধ হলে সমস্যাগুলির জন্য এটি পরীক্ষা করা উচিত।
আপলোড করা বৈশিষ্ট্যগুলি পুনরুদ্ধার করার আগে প্রথমে প্রক্রিয়া করা দরকার৷ ততক্ষণ পর্যন্ত, নতুন পণ্যগুলি অনুপলব্ধ থাকবে এবং পূর্বে আপলোড করা পণ্যগুলি পুনরুদ্ধার করলে পণ্যটির আসল অবস্থা ফিরে আসবে।
HTTP অনুরোধ
PUT https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
parent | string accounts/{account_id} ফর্ম্যাটে অভিভাবক আইডি। account_id - ম্যানুফ্যাকচারার সেন্টার অ্যাকাউন্টের আইডি। |
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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-14 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-14 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)."]]