L'API
Google Business Performance ha un metodo
NOVITÀ che consente di recuperare più `dailyMetrics` in un'unica richiesta API.
Consulta il
calendario del ritiro e le istruzioni per eseguire la migrazione dal metodo API ReportInsights della versione 4 all'API Performance di Google Profilo.
Notifications
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Un argomento di Google Cloud Pub/Sub in cui è possibile pubblicare le notifiche quando una località viene aggiornata o è in corso una nuova recensione. Sarà presente una sola risorsa di impostazioni di notifica per account.
Rappresentazione JSON |
{
"name": string,
"topicName": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Campi |
name |
string
Solo output. Il nome della risorsa delle notifiche.
|
topicName |
string
L'argomento Google Cloud Pub/Sub che riceverà notifiche quando le località gestite da questo account vengono aggiornate. Se il criterio non viene configurato, non verranno pubblicate notifiche. L'account mybusiness-api-pubsub@system.gserviceaccount.com deve disporre almeno delle autorizzazioni di pubblicazione per l'argomento Cloud Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Tipi di notifiche che verranno inviate all'argomento Cloud Pub/Sub. È necessario specificarne almeno uno. Per interrompere completamente la ricezione delle notifiche, utilizza accounts.deleteNotifications .
|
NotificationType
Tipo di notifica inviata all'argomento Cloud Pub/Sub.
Enum |
NOTIFICATION_TYPE_UNSPECIFIED |
Nessun tipo di notifica. Non corrisponderà a nessuna notifica. |
GOOGLE_UPDATE |
Per la sede sono disponibili aggiornamenti Google da esaminare. Il campo locationName della notifica indicherà il nome della risorsa della località con gli aggiornamenti Google. |
NEW_REVIEW |
È stata aggiunta una nuova recensione per la sede. Il campo reviewName della notifica indicherà il nome della risorsa della recensione aggiunta, mentre locationName avrà il nome della risorsa della località. |
UPDATED_REVIEW |
È stata aggiornata una recensione sulla sede. Il campo reviewName della notifica indicherà il nome della risorsa della recensione aggiunta, mentre locationName avrà il nome della risorsa della località. |
NEW_CUSTOMER_MEDIA |
Un nuovo elemento multimediale è stato aggiunto alla posizione da un utente di Google Maps. La notifica fornirà il nome della risorsa del nuovo elemento multimediale. |
NEW_QUESTION |
Viene aggiunta una nuova domanda alla posizione. Nella notifica verrà fornito il nome della risorsa della domanda. |
UPDATED_QUESTION |
Viene aggiornata una domanda sul luogo. Nella notifica verrà fornito il nome della risorsa della domanda. |
NEW_ANSWER |
Viene aggiunta una nuova risposta alla posizione. La notifica fornirà il nome risorsa della domanda e della risposta. |
UPDATED_ANSWER |
La risposta relativa alla posizione viene aggiornata. La notifica fornirà il nome risorsa della domanda e della risposta. |
UPDATED_LOCATION_STATE |
Il valore LocationState della località è stato aggiornato. La notifica conterrà la maschera dei campi dei campi LocationState aggiornati. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]