Method: accounts.products.update
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Manufacturer Center アカウントの商品属性を挿入または更新します。
指定された属性で商品を作成します。商品がすでに存在する場合は、すべての属性が新しい属性に置き換えられます。アップロード時のチェックは最小限です。商品を有効にするには、必要な属性がすべて存在している必要があります。API が商品の新しいアップロードを受け入れた後で問題が発生することがあります。また、既存の有効な商品を無効な商品で上書きすることも可能です。この問題を検出するには、新しいバージョンが利用可能になったら商品を取得し、問題がないか確認する必要があります。
アップロードされた属性は、取得する前に処理する必要があります。それまでは、新商品の登録はできず、以前にアップロードした商品を取得すると、商品の元の状態が返されます。
HTTP リクエスト
PUT https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
accounts/{account_id} 形式の親 ID。
account_id - Manufacturer Center アカウントの ID。
|
name |
string
名前は {targetCountry}:{contentLanguage}:{productId} の形式にします。 targetCountry - 商品の対象国(CLDR 地域コード(US など))。
contentLanguage - 商品のコンテンツ言語。2 文字の ISO 639-1 言語コード(例: en)。
productId - 商品の ID。詳しくは、https://support.google.com/manufacturers/answer/6124116#id をご覧ください。
|
リクエストの本文
リクエストの本文には Attributes
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文は空の JSON オブジェクトになります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/manufacturercenter
詳細については、OAuth 2.0 Overview をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-17 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-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)."]]