La API de
Google Business Performance tiene un método de API
NUEVO que permite recuperar varias métricas "DailyMetrics" en una sola solicitud a la API.
Revise el
programa de baja y las instrucciones para migrar del método de la API de reportInsights versión 4 a la API de rendimiento del Perfil de Negocio de Google.
NotificationSetting
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Un tema de Google Pub/Sub en el que se pueden publicar notificaciones cuando se actualiza una ubicación o tiene una opinión nueva Solo habrá un recurso de configuración de notificaciones por cuenta.
Representación JSON |
{
"name": string,
"pubsubTopic": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Campos |
name |
string
Obligatorio. El nombre del recurso para este parámetro de configuración. El formato es accounts/{account_id}/notificationSetting .
|
pubsubTopic |
string
Opcional. El tema de Google Pub/Sub que recibirá notificaciones cuando se actualicen las ubicaciones administradas por esta cuenta. Si no la estableces, no se publicarán notificaciones. La cuenta mybusiness-api-pubsub@system.gserviceaccount.com debe tener, como mínimo, permisos de publicación en el tema de Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Los tipos de notificaciones que se enviarán al tema de Pub/Sub. Para dejar de recibir notificaciones por completo, usa NotificationSettings.UpdateNotificationSetting con un notificationTypes vacío o configura pubsubTopic en una cadena vacía.
|
NotificationType
Tipo de notificación enviada al tema de Pub/Sub.
Enumeraciones |
NOTIFICATION_TYPE_UNSPECIFIED |
No hay ningún tipo de notificación. No coincidirá con ninguna notificación. |
GOOGLE_UPDATE |
La ubicación tiene actualizaciones de Google para revisar. El campo location_name de la notificación proporcionará el nombre del recurso de la ubicación con las actualizaciones de Google. |
NEW_REVIEW |
Se agregó una nueva opinión a la ubicación. El campo review_name de la notificación proporcionará el nombre del recurso de la opinión que se agregó, mientras que location_name tendrá el nombre del recurso de la ubicación. |
UPDATED_REVIEW |
Se actualizó una opinión sobre la ubicación. El campo review_name de la notificación proporcionará el nombre del recurso de la opinión que se agregó, mientras que location_name tendrá el nombre del recurso de la ubicación. |
NEW_CUSTOMER_MEDIA |
Un usuario de Google Maps agregó un nuevo elemento multimedia a la ubicación. La notificación proporcionará el nombre del recurso del nuevo elemento multimedia. |
NEW_QUESTION |
Se agregará una pregunta nueva a la ubicación. La notificación proporcionará el nombre del recurso de la pregunta. |
UPDATED_QUESTION |
Se actualiza una pregunta sobre la ubicación. La notificación proporcionará el nombre del recurso de la pregunta. |
NEW_ANSWER |
Se agregará una respuesta nueva a la ubicación. La notificación proporcionará el nombre del recurso de la pregunta y la respuesta. |
UPDATED_ANSWER |
Se actualiza una respuesta sobre la ubicación. La notificación proporcionará el nombre del recurso de la pregunta y la respuesta. |
DUPLICATE_LOCATION |
Indica si hay un cambio en el campo de ubicación duplicada de los metadatos de ubicación. |
LOSS_OF_VOICE_OF_MERCHANT |
Obsoleto: Migra los usos existentes de este valor a "VOICE_OF_MERCHANT_UPDATED" más expandido. |
VOICE_OF_MERCHANT_UPDATED |
Indica si la ubicación tiene una actualización en el estado de Voz del comercio (VOM). El VOM determina si la ubicación está en regla y si el comercio tiene el control de la empresa en Google. Las modificaciones que se realicen en la ubicación se propagarán a Maps una vez que se apruebe la fase de revisión. Llama a la rpc GetVoiceOfMerchantState para obtener más detalles. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 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. |"]]