A API
Google Business Performance tem um
NOVO método de API que permite buscar várias "DailyMetrics" em uma única solicitação de API.
Confira a
programação de descontinuação e instruções para migrar do método de API reportInsights v4 para a API Google Business Profile Performance.
NotificationSetting
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Um tópico do Google Pub/Sub em que as notificações podem ser publicadas quando um local é atualizado ou tem uma nova avaliação. Haverá apenas um recurso de configuração de notificação por conta.
Representação JSON |
{
"name": string,
"pubsubTopic": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Campos |
name |
string
Obrigatório. O nome do recurso a que essa configuração se refere. Ele tem o formato accounts/{account_id}/notificationSetting .
|
pubsubTopic |
string
Opcional. O tópico do Google Pub/Sub que receberá notificações quando os locais gerenciados por esta conta forem atualizados. Se ela for deixada sem definição, nenhuma notificação será postada. A conta mybusiness-api-pubsub@system.gserviceaccount.com precisa ter pelo menos permissões de publicação no tópico do Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Os tipos de notificações que serão enviadas ao tópico do Pub/Sub. Para parar de receber notificações completamente, use NotificationSettings.UpdateNotificationSetting com notificationTypes vazio ou defina pubsubTopic como uma string vazia.
|
NotificationType
Tipo de notificação enviada ao tópico do Pub/Sub.
Enums |
NOTIFICATION_TYPE_UNSPECIFIED |
Nenhum tipo de notificação. Não vai corresponder a nenhuma notificação. |
GOOGLE_UPDATE |
O local tem atualizações do Google para revisão. O campo location_name na notificação fornece o nome de recurso do local com atualizações do Google. |
NEW_REVIEW |
Uma nova avaliação foi adicionada ao local. O campo review_name da notificação vai fornecer o nome do recurso da avaliação que foi adicionada, e location_name terá o nome de recurso do local. |
UPDATED_REVIEW |
Uma avaliação sobre o local foi atualizada. O campo review_name da notificação vai fornecer o nome do recurso da avaliação que foi adicionada, e location_name terá o nome de recurso do local. |
NEW_CUSTOMER_MEDIA |
Um novo item de mídia foi adicionado ao local por um usuário do Google Maps. A notificação fornecerá o nome do recurso do novo item de mídia. |
NEW_QUESTION |
Uma nova pergunta é adicionada ao local. A notificação vai mostrar o nome do recurso em questão. |
UPDATED_QUESTION |
Uma pergunta sobre o local foi atualizada. A notificação vai mostrar o nome do recurso em questão. |
NEW_ANSWER |
Uma nova resposta é adicionada ao local. A notificação vai fornecer o nome do recurso da pergunta e da resposta. |
UPDATED_ANSWER |
Uma resposta do local será atualizada. A notificação vai fornecer o nome do recurso da pergunta e da resposta. |
DUPLICATE_LOCATION |
Indica se há uma alteração no campo de local duplicado dos metadados de local. |
LOSS_OF_VOICE_OF_MERCHANT |
Obsoleto: migre os usos existentes desse valor para "VOICE_OF_MERCHANT_UPDATED". |
VOICE_OF_MERCHANT_UPDATED |
Indica se o local tem uma atualização no status do Voice of Merchant (VOM). O VOM determina se o local está em situação regular e se o comerciante tem controle sobre a empresa no Google. Todas as edições feitas no local serão propagadas para o Google Maps após a fase de revisão. Chame o RPC GetVoiceOfMerchantState para mais detalhes. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-25 UTC.
[null,null,["Última atualização 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. |"]]