La API
Performance de Perfil de Empresa en Google tiene un
NUEVO método que permite obtener varios valores del parámetro "DailyMetrics" con una misma solicitud.
Consulta el
calendario de desactivación y las instrucciones para pasar del método reportInsights de la versión 4 de la API de Google My Business a la API Performance de Perfil de Empresa en Google.
Notifications
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Un tema de Google Cloud Pub/Sub en el que se pueden publicar notificaciones cuando se actualiza una ubicación o tiene una nueva opinión. Habrá un solo recurso de configuración de notificaciones por cuenta.
Representación JSON |
{
"name": string,
"topicName": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Campos |
name |
string
Solo salida. El nombre del recurso de notificaciones.
|
topicName |
string
El tema de Google Cloud 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 Cloud Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Los tipos de notificaciones que se enviarán al tema de Cloud Pub/Sub. Se debe especificar al menos uno. Para dejar de recibir notificaciones por completo, usa accounts.deleteNotifications .
|
NotificationType
Tipo de notificación enviada al tema de Cloud 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 locationName 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 reviewName de la notificación proporcionará el nombre del recurso de la opinión que se agregó, mientras que locationName tendrá el nombre del recurso de la ubicación. |
UPDATED_REVIEW |
Se actualizó una opinión sobre la ubicación. El campo reviewName de la notificación proporcionará el nombre del recurso de la opinión que se agregó, mientras que locationName 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. |
UPDATED_LOCATION_STATE |
Se actualizó el LocationState de la ubicación. La notificación contendrá la máscara de campo de los campos LocationState actualizados. |
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 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. |"]]