Method: accounts.products.update
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Inserta o actualiza los atributos del producto en una cuenta de Manufacturer Center.
Crea un producto con los atributos proporcionados. Si el producto ya existe, todos los atributos se reemplazan por los nuevos. Las verificaciones en el momento de la carga son mínimas. Todos los atributos obligatorios deben estar presentes para que un producto sea válido. Es posible que los problemas aparezcan más adelante, después de que la API haya aceptado una carga nueva de un producto, y es posible que se sobrescriba un producto válido existente con un producto no válido. Para detectar esto, debes recuperar el producto y verificar si tiene problemas una vez que la nueva versión esté disponible.
Primero, se deben procesar los atributos subidos antes de que se puedan recuperar. Hasta entonces, los productos nuevos no estarán disponibles, y la recuperación de los productos subidos anteriormente devolverá el estado original del producto.
Solicitud HTTP
PUT https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
parent |
string
ID principal en el formato accounts/{account_id} . account_id : Es el ID de la cuenta de Manufacturer Center.
|
name |
string
Nombre en el formato {targetCountry}:{contentLanguage}:{productId} . targetCountry : Es el país objetivo del producto como código de territorio CLDR (por ejemplo, US).
contentLanguage : Es el idioma del contenido del producto como un código de idioma ISO 639-1 de dos letras (por ejemplo, en).
productId : Es el ID del producto. Para obtener más información, consulta https://support.google.com/manufacturers/answer/6124116#id.
|
Cuerpo de la solicitud
El cuerpo de la solicitud contiene una instancia de Attributes
.
Cuerpo de la respuesta
Si se ejecuta correctamente, el cuerpo de la respuesta es un objeto JSON vacío.
Permisos de autorización
Requiere el siguiente permiso de OAuth:
https://www.googleapis.com/auth/manufacturercenter
Para obtener más información, consulta OAuth 2.0 Overview.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-08-17 (UTC)
[null,null,["Última actualización: 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)."]]