Method: accounts.products.delete
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Supprime le produit d'un compte Manufacturer Center.
Requête HTTP
DELETE https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
Paramètres |
parent |
string
ID parent au format accounts/{account_id} . account_id : ID du compte Manufacturer Center.
|
name |
string
Nom au format {targetCountry}:{contentLanguage}:{productId} . targetCountry : pays cible du produit sous la forme d'un code de territoire CLDR (par exemple, "US").
contentLanguage : langue du contenu du produit sous la forme d'un code de langue ISO 639-1 à deux lettres (par exemple, "en").
productId : ID du produit. Pour en savoir plus, consultez https://support.google.com/manufacturers/answer/6124116#id.
|
Corps de la requête
Le corps de la requête doit être vide.
Corps de la réponse
Si la requête aboutit, le corps de la réponse est un objet JSON vide.
Niveaux d'accès des autorisations
Requiert le niveau d'accès OAuth suivant :
https://www.googleapis.com/auth/manufacturercenter
Pour plus d'informations, consultez laOAuth 2.0 Overview.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/17 (UTC).
[null,null,["Dernière mise à jour le 2025/08/17 (UTC)."],[[["\u003cp\u003eDeletes a specified product from a Manufacturer Center account using its ID, target country, and content language.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns an empty response body upon successful deletion.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003eDELETE\u003c/code\u003e method and specific path parameters including the account ID and product information for identification.\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.delete\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\nDeletes the product from a Manufacturer Center account.\n\n### HTTP request\n\n`DELETE 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 must be empty.\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)."]]