Interfejs
Google Business Performance API udostępnia
NOWĄ metodę interfejsu API, która umożliwia pobieranie wielu parametrów „DailyMetrics” w jednym żądaniu API.
Zapoznaj się z
harmonogramem wycofywania i instrukcjami, jak przejść z metody raportu API w wersji 4 na interfejs Google Business Profile Performance API.
Notifications
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Temat Google Cloud Pub/Sub, w którym mogą być publikowane powiadomienia, gdy lokalizacja zostanie zaktualizowana lub opublikowana nowa opinia. Na każdym koncie będzie tylko 1 zasób z ustawieniami powiadomień.
Zapis JSON |
{
"name": string,
"topicName": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Pola |
name |
string
Tylko dane wyjściowe. Nazwa zasobu powiadomień.
|
topicName |
string
Temat Google Cloud Pub/Sub, który będzie otrzymywać powiadomienia po aktualizacji lokalizacji zarządzanych przez to konto. Jeśli nie jest skonfigurowana, żadne powiadomienia nie są publikowane. Konto mybusiness-api-pubsub@system.gserviceaccount.com musi mieć co najmniej uprawnienia do publikowania w temacie Cloud Pub/Sub.
|
notificationTypes[] |
enum (NotificationType )
Typy powiadomień, które będą wysyłane do tematu Cloud Pub/Sub. Trzeba podać co najmniej jedną. Aby całkowicie wyłączyć powiadomienia, użyj funkcji accounts.deleteNotifications .
|
NotificationType
Typ powiadomienia wysłanego do tematu Cloud Pub/Sub.
Wartości w polu enum |
NOTIFICATION_TYPE_UNSPECIFIED |
Brak typu powiadomienia. Nie pasuje do żadnych powiadomień. |
GOOGLE_UPDATE |
Lokalizacja ma do sprawdzenia aktualizacje Google. Pole locationName w powiadomieniu zawiera nazwę zasobu lokalizacji z aktualizacjami Google. |
NEW_REVIEW |
Do lokalizacji dodano nową opinię. W polu reviewName w powiadomieniu podana będzie nazwa zasobu dodanej opinii, a locationName będzie zawierać nazwę zasobu lokalizacji. |
UPDATED_REVIEW |
Zaktualizowaliśmy opinię na temat lokalizacji. W polu reviewName w powiadomieniu podana będzie nazwa zasobu dodanej opinii, a locationName będzie zawierać nazwę zasobu lokalizacji. |
NEW_CUSTOMER_MEDIA |
Użytkownik Map Google dodał do lokalizacji nowy element multimedialny. Powiadomienie będzie zawierać nazwę zasobu nowego elementu multimedialnego. |
NEW_QUESTION |
Do lokalizacji zostanie dodane nowe pytanie. W powiadomieniu znajdziesz nazwę zasobu pytania. |
UPDATED_QUESTION |
Zaktualizowano pytanie o lokalizację. W powiadomieniu znajdziesz nazwę zasobu pytania. |
NEW_ANSWER |
Nowa odpowiedź zostanie dodana do lokalizacji. Powiadomienie będzie zawierać nazwę zasobu pytania i odpowiedzi. |
UPDATED_ANSWER |
Zaktualizowano odpowiedź dotyczącą lokalizacji. Powiadomienie będzie zawierać nazwę zasobu pytania i odpowiedzi. |
UPDATED_LOCATION_STATE |
Zaktualizowano stan lokalizacji lokalizacji. Powiadomienie będzie zawierać maskę zaktualizowanych pól LocationState. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]