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.
NotificationSetting
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Un argomento di Google Pub/Sub in cui è possibile pubblicare le notifiche quando una località viene aggiornata o è disponibile una nuova recensione. Sarà presente una sola risorsa per le impostazioni di notifica per account.
Rappresentazione JSON |
{
"name": string,
"pubsubTopic": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Campi |
name |
string
Obbligatorio. Il nome della risorsa a cui appartiene questa impostazione. Il formato è accounts/{account_id}/notificationSetting .
|
pubsubTopic |
string
(Facoltativo) L'argomento Google 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 Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
I tipi di notifiche che verranno inviati all'argomento Pub/Sub. Per interrompere completamente la ricezione delle notifiche, utilizza NotificationSettings.UpdateNotificationSetting con un notificationTypes vuoto o imposta pubsubTopic su una stringa vuota.
|
NotificationType
Tipo di notifica inviata all'argomento 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 location_name nella notifica fornirà il nome della risorsa della località con gli aggiornamenti Google. |
NEW_REVIEW |
È stata aggiunta una nuova recensione per la sede. Il campo review_name nella notifica indicherà il nome della risorsa della recensione che è stata aggiunta, mentre location_name avrà il nome della risorsa della località. |
UPDATED_REVIEW |
È stata aggiornata una recensione sulla sede. Il campo review_name nella notifica indicherà il nome della risorsa della recensione che è stata aggiunta, mentre location_name 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. |
DUPLICATE_LOCATION |
Indica se è stata apportata una modifica al campo della località duplicato dei metadati della località. |
LOSS_OF_VOICE_OF_MERCHANT |
Deprecato: esegui la migrazione degli utilizzi esistenti di questo valore alla versione più espansa "VOICE_OF_MERCHANT_UPDATED". |
VOICE_OF_MERCHANT_UPDATED |
Indica se è disponibile un aggiornamento dello stato Voice of Merchant (VOM) per la sede. Il VOM indica se la sede è in regola e se il commerciante ha il controllo dell'attività su Google. Qualsiasi modifica apportata alla sede verrà propagata a Maps dopo il superamento della fase di revisione. Chiama GetVoiceOfMerchantState rpc per ulteriori dettagli. |
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 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. |"]]