Method: accounts.products.update
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Fügt die Attribute des Produkts in ein Manufacturer Center-Konto ein oder aktualisiert sie.
Erstellt ein Produkt mit den angegebenen Attributen. Wenn das Produkt bereits vorhanden ist, werden alle Attribute durch die neuen ersetzt. Die Prüfungen beim Hochladen sind minimal. Alle erforderlichen Attribute müssen vorhanden sein, damit ein Produkt gültig ist. Probleme können auch später auftreten, nachdem die API einen neuen Upload für ein Produkt akzeptiert hat. Es ist möglich, ein vorhandenes gültiges Produkt mit einem ungültigen Produkt zu überschreiben. Um dies zu erkennen, sollten Sie das Produkt abrufen und prüfen, sobald die neue Version verfügbar ist.
Hochgeladene Attribute müssen zuerst verarbeitet werden, bevor sie abgerufen werden können. Bis dahin sind neue Produkte nicht verfügbar und beim Abrufen zuvor hochgeladener Produkte wird der ursprüngliche Status des Produkts zurückgegeben.
HTTP-Anfrage
PUT https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Übergeordnete ID im Format accounts/{account_id} . account_id : Die ID des Manufacturer Center-Kontos.
|
name |
string
Name im Format {targetCountry}:{contentLanguage}:{productId} . targetCountry : Das Zielland des Produkts als CLDR-Regionscode (z. B. US).
contentLanguage : Die Sprache des Inhalts des Produkts als zweistelliger ISO 639-1-Sprachcode (z. B. „en“).
productId : Die ID des Produkts. Weitere Informationen finden Sie unter https://support.google.com/manufacturers/answer/6124116#id.
|
Anfragetext
Der Anfragetext enthält eine Instanz von Attributes
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, ist der Antworttext ein leeres JSON-Objekt.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/manufacturercenter
Weitere Informationen finden Sie unter OAuth 2.0 Overview.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-17 (UTC).
[null,null,["Zuletzt aktualisiert: 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)."]]