L'API
Google Business Performance propose une
NOUVELLE méthode qui permet d'extraire plusieurs `DailyMetrics` avec une seule requête API.
Consultez le
planning d'abandon et les instructions pour migrer de la méthode API reportInsights v4 à l'API Google Business Profile Performance.
Method: accounts.deleteNotifications
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Efface les paramètres de notification Pub/Sub pour le compte.
Requête HTTP
DELETE https://mybusiness.googleapis.com/v4/{name=accounts/*/notifications}
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
Paramètres |
name |
string
Nom de ressource pour les paramètres de notification à effacer.
|
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 vide.
Champs d'application des autorisations
Nécessite l'un des champs d'application OAuth suivants :
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Pour en savoir plus, consultez la présentation d'OAuth 2.0.
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/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eThis document describes how to clear pubsub notification settings for a Google My Business account using the \u003ccode\u003eDELETE\u003c/code\u003e method and the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the account name in the path parameter and an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful operation results in an empty response body, indicating the settings have been cleared.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires using one of the specified OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/plus.business.manage\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis method is deprecated and Google recommends using the Notifications API instead.\u003c/p\u003e\n"]]],["This document outlines the process to clear pubsub notification settings for an account using a `DELETE` HTTP request. The URL structure follows gRPC Transcoding, requiring a resource `name` parameter in the path. The request body should be empty. A successful operation returns an empty response body. This functionality is deprecated and should be replaced by the Notifications API. Authorization requires one of two specified OAuth scopes to be provided in the request.\n"],null,["# Method: accounts.deleteNotifications\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\n| Deprecated. Please use the [Notifications API](https://developers.google.com/my-business/reference/notifications/rest/v1/accounts/updateNotificationSetting) instead.\nClears the pubsub notification settings for the account.\n\n### HTTP request\n\n`DELETE https://mybusiness.googleapis.com/v4/{name=accounts/*/notifications}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------|\n| `name` | `string` The resource name for the notification settings to be cleared. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/plus.business.manage`\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]