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.
Notifications
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Un sujet Google Cloud Pub/Sub dans lequel des notifications peuvent être publiées lorsqu'un établissement est mis à jour ou fait l'objet d'un nouvel avis. Il n'existe qu'une seule ressource de paramètres de notification par compte.
Représentation JSON |
{
"name": string,
"topicName": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Champs |
name |
string
Uniquement en sortie. Nom de la ressource des notifications.
|
topicName |
string
Sujet Google Cloud Pub/Sub qui recevra des notifications lorsque des emplacements gérés par ce compte sont mis à jour. Si cette règle n'est pas configurée, aucune notification ne sera publiée. Le compte mybusiness-api-pubsub@system.gserviceaccount.com doit au minimum disposer d'autorisations de publication sur le sujet Cloud Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Types de notifications qui seront envoyées au sujet Cloud Pub/Sub. Vous devez en spécifier au moins un. Pour ne plus recevoir de notifications, utilisez accounts.deleteNotifications .
|
NotificationType
Type de notification envoyée au sujet Cloud Pub/Sub.
Enums |
NOTIFICATION_TYPE_UNSPECIFIED |
Aucun type de notification. Ne correspondra à aucune notification. |
GOOGLE_UPDATE |
L'établissement fait l'objet de mises à jour Google à examiner. Le champ locationName de la notification fournit le nom de ressource de l'établissement avec les mises à jour Google. |
NEW_REVIEW |
Un nouvel avis a été ajouté à l'établissement. Le champ reviewName de la notification indique le nom de la ressource de l'avis ajouté, tandis que le champ locationName contient le nom de la ressource de l'établissement. |
UPDATED_REVIEW |
Un avis sur l'établissement a été mis à jour. Le champ reviewName de la notification indique le nom de la ressource de l'avis ajouté, tandis que le champ locationName contient le nom de la ressource de l'établissement. |
NEW_CUSTOMER_MEDIA |
Un utilisateur de Google Maps a ajouté un élément multimédia à l'établissement. La notification fournit le nom de ressource du nouvel élément multimédia. |
NEW_QUESTION |
Une nouvelle question est ajoutée au lieu. La notification fournit le nom de ressource de la question. |
UPDATED_QUESTION |
Une question concernant la position est mise à jour. La notification fournit le nom de ressource de la question. |
NEW_ANSWER |
Une nouvelle réponse est ajoutée au lieu. La notification fournit le nom de ressource de la question et de la réponse. |
UPDATED_ANSWER |
Une réponse correspondant au lieu est mise à jour. La notification fournit le nom de ressource de la question et de la réponse. |
UPDATED_LOCATION_STATE |
L'élément LocationState de l'établissement a été mis à jour. La notification contiendra le masque de champ des champs LocationState mis à jour. |
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\u003eGoogle Cloud Pub/Sub topic allows business accounts to receive notifications about location updates and new reviews.\u003c/p\u003e\n"],["\u003cp\u003eEach account has a single notification settings resource which can be configured to receive different types of notifications.\u003c/p\u003e\n"],["\u003cp\u003eNotifications can be triggered by various events including Google updates, new/updated reviews, customer media, questions, answers, and location state changes.\u003c/p\u003e\n"],["\u003cp\u003eTo receive notifications, the 'mybusiness-api-pubsub@system.gserviceaccount.com' must have publish permissions on the specified Cloud Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eBusinesses can stop receiving notifications completely using the \u003ccode\u003eaccounts.deleteNotifications\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# Notifications\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [NotificationType](#NotificationType)\n\nA Google Cloud Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification settings resource per-account.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"topicName\": string, \"notificationTypes\": [ enum (/my-business/reference/rest/v4/Notifications#NotificationType) ] } ``` |\n\n| Fields ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The notifications resource name. |\n| `topicName` | `string` The Google Cloud Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account [mybusiness-api-pubsub@system.gserviceaccount.com](mailto:mybusiness-api-pubsub@system.gserviceaccount.com) must have at least Publish permissions on the Cloud Pub/Sub topic. |\n| `notificationTypes[]` | `enum (`[NotificationType](/my-business/reference/rest/v4/Notifications#NotificationType)`)` The types of notifications that will be sent to the Cloud Pub/Sub topic. At least one must be specified. To stop receiving notifications entirely, use [accounts.deleteNotifications](/my-business/reference/rest/v4/accounts/deleteNotifications#google.mybusiness.v4.Accounts.DeleteNotifications). |\n\nNotificationType\n----------------\n\nType of notification sent to the Cloud Pub/Sub topic.\n\n| Enums ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `NOTIFICATION_TYPE_UNSPECIFIED` | No notification type. Will not match any notifications. |\n| `GOOGLE_UPDATE` | The location has Google updates for review. The locationName field on the notification will provide the resource name of the location with Google updates. |\n| `NEW_REVIEW` | A new review has been added to the location. The reviewName field on the notification will provide the resource name of the review that was added, and locationName will have the location's resource name. |\n| `UPDATED_REVIEW` | A review on the location has been updated. The reviewName field on the notification will provide the resource name of the review that was added, and locationName will have the location's resource name. |\n| `NEW_CUSTOMER_MEDIA` | A new media item has been added to the location by a Google Maps user. The notification will provide the resource name of the new media item. |\n| `NEW_QUESTION` | A new question is added to the location. The notification will provide the resource name of question. |\n| `UPDATED_QUESTION` | A question of the location is updated. The notification will provide the resource name of question. |\n| `NEW_ANSWER` | A new answer is added to the location. The notification will provide the resource name of question and answer. |\n| `UPDATED_ANSWER` | An answer of the location is updated. The notification will provide the resource name of question and answer. |\n| `UPDATED_LOCATION_STATE` | The LocationState of the Location was updated. The Notification will contain the field mask of the updated LocationState fields. |"]]