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.
NotificationSetting
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Un sujet Google 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'y aura qu'une seule ressource de paramètre de notification par compte.
Représentation JSON |
{
"name": string,
"pubsubTopic": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Champs |
name |
string
Obligatoire. Nom de ressource auquel ce paramètre est destiné. Il se présente sous la forme accounts/{account_id}/notificationSetting .
|
pubsubTopic |
string
Facultatif. Sujet Google Pub/Sub qui recevra les notifications lorsque des établissements gérés par ce compte seront 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 Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Types de notifications qui seront envoyées au sujet Pub/Sub. Pour ne plus recevoir de notifications, utilisez NotificationSettings.UpdateNotificationSetting avec un champ notificationTypes vide ou définissez pubsubTopic sur une chaîne vide.
|
NotificationType
Type de notification envoyée au sujet 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 "location_name" 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 "review_name" de la notification indique le nom de la ressource de l'avis ajouté, et le champ "location_name" contient le nom de la ressource de l'établissement. |
UPDATED_REVIEW |
Un avis sur l'établissement a été mis à jour. Le champ "review_name" de la notification indique le nom de la ressource de l'avis ajouté, et le champ "location_name" 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. |
DUPLICATE_LOCATION |
Indique s'il y a un changement dans le champ d'établissement en double des métadonnées d'établissement. |
LOSS_OF_VOICE_OF_MERCHANT |
Obsolète: Migrez les utilisations existantes de cette valeur vers la version plus développée de "VOICE_OF_MERCHANT_UPDATED". |
VOICE_OF_MERCHANT_UPDATED |
Indique si l'état Voice of Merchant (VOM) de l'établissement a été mis à jour. Le VOM détermine si l'établissement est en règle et que le marchand contrôle l'établissement sur Google. Toute modification apportée à l'établissement sera appliquée à Maps une fois l'examen terminé. Pour en savoir plus, appelez le RPC GetVoiceOfMerchantState. |
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 Pub/Sub notifications can be configured for location updates and new reviews.\u003c/p\u003e\n"],["\u003cp\u003eA single notification setting exists per account, directing notifications to a specified Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eNotification types include Google updates, new/updated reviews, new customer media, new/updated Q&A, duplicate location and Voice of Merchant updates.\u003c/p\u003e\n"],["\u003cp\u003eAccount must grant \u003ccode\u003emybusiness-api-pubsub@system.gserviceaccount.com\u003c/code\u003e publish permissions on the designated Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eTo disable notifications, clear the \u003ccode\u003enotificationTypes\u003c/code\u003e list or set \u003ccode\u003epubsubTopic\u003c/code\u003e to an empty string in the notification settings.\u003c/p\u003e\n"]]],[],null,["# NotificationSetting\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [NotificationType](#NotificationType)\n\nA Google Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification setting resource per-account.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"pubsubTopic\": string, \"notificationTypes\": [ enum (/my-business/reference/notifications/rest/v1/NotificationSetting#NotificationType) ] } ``` |\n\n| Fields ||\n|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`. |\n| `pubsubTopic` | `string` Optional. The Google 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 Pub/Sub topic. |\n| `notificationTypes[]` | `enum (`[NotificationType](/my-business/reference/notifications/rest/v1/NotificationSetting#NotificationType)`)` The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notificationTypes or set the pubsubTopic to an empty string. |\n\nNotificationType\n----------------\n\nType of notification sent to the 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 location_name 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 review_name field on the notification will provide the resource name of the review that was added, and location_name will have the location's resource name. |\n| `UPDATED_REVIEW` | A review on the location has been updated. The review_name field on the notification will provide the resource name of the review that was added, and location_name 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| `DUPLICATE_LOCATION` | Indicates whether there is a change in location metadata's duplicate location field. |\n| `LOSS_OF_VOICE_OF_MERCHANT` | Deprecated: Migrate the existing usages of this value to the more expanded \"VOICE_OF_MERCHANT_UPDATED\". | This item is deprecated! |\n| `VOICE_OF_MERCHANT_UPDATED` | Indicates whether the location has an update in Voice of Merchant (VOM) status. VOM dictates whether the location is in good standing and the merchant has control over the business on Google. Any edits made to the location will propagate to Maps after passing the review phase. Call GetVoiceOfMerchantState rpc for more details. |"]]