Für die
Google Business Performance API gibt es eine
NEUE API-Methode, mit der sich mehrere „DailyMetrics“-Objekte in einer einzelnen Anfrage abrufen lassen.
Sehen Sie sich den
Zeitplan für die Einstellung und die Anleitung für die Migration von der reportInsights API-Methode Version 4 zur Google Business Profile Performance API an.
NotificationSetting
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ein Google Pub/Sub-Thema, in dem Benachrichtigungen veröffentlicht werden können, wenn ein Standort aktualisiert wird oder eine neue Überprüfung hat. Es gibt nur eine Ressource für Benachrichtigungseinstellungen pro Konto.
JSON-Darstellung |
{
"name": string,
"pubsubTopic": string,
"notificationTypes": [
enum (NotificationType )
]
} |
Felder |
name |
string
Erforderlich. Der Ressourcenname, für den diese Einstellung gilt. Sie hat die Form accounts/{account_id}/notificationSetting .
|
pubsubTopic |
string
Optional. Das Google Pub/Sub-Thema, das Benachrichtigungen erhält, wenn über dieses Konto verwaltete Standorte aktualisiert werden. Wenn die Richtlinie nicht konfiguriert ist, werden keine Benachrichtigungen gepostet. Das Konto mybusiness-api-pubsub@system.gserviceaccount.com muss mindestens Veröffentlichungsberechtigungen für das Pub/Sub-Thema haben.
|
notificationTypes[] |
enum (NotificationType )
Die Benachrichtigungstypen, die an das Pub/Sub-Thema gesendet werden. Wenn Sie keine Benachrichtigungen mehr erhalten möchten, verwenden Sie NotificationSettings.UpdateNotificationSetting mit leeren Benachrichtigungstypen oder legen Sie für pubsubTopic einen leeren String fest.
|
NotificationType
Benachrichtigungstyp, der an das Pub/Sub-Thema gesendet wurde.
Enums |
NOTIFICATION_TYPE_UNSPECIFIED |
Kein Benachrichtigungstyp. Es werden keine Benachrichtigungen zugeordnet. |
GOOGLE_UPDATE |
Für den Standort liegen Google-Aktualisierungen vor, die überprüft werden müssen. Das Feld „location_name“ in der Benachrichtigung enthält den Ressourcennamen des Standorts, für den Google-Aktualisierungen vorliegen. |
NEW_REVIEW |
Für den Standort wurde eine neue Rezension hinzugefügt. Das Feld „review_name“ in der Benachrichtigung enthält den Ressourcennamen der hinzugefügten Rezension und „location_name“ den Ressourcennamen des Standorts. |
UPDATED_REVIEW |
Eine Rezension für den Standort wurde aktualisiert. Das Feld „review_name“ in der Benachrichtigung enthält den Ressourcennamen der hinzugefügten Rezension und „location_name“ den Ressourcennamen des Standorts. |
NEW_CUSTOMER_MEDIA |
Ein Google Maps-Nutzer hat dem Standort ein neues Medienelement hinzugefügt. Die Benachrichtigung enthält den Ressourcennamen des neuen Medienelements. |
NEW_QUESTION |
Dem Ort wird eine neue Frage hinzugefügt. Die Benachrichtigung enthält den Ressourcennamen der Frage. |
UPDATED_QUESTION |
Eine Frage zum Standort wird aktualisiert. Die Benachrichtigung enthält den Ressourcennamen der Frage. |
NEW_ANSWER |
Dem Ort wird eine neue Antwort hinzugefügt. Die Benachrichtigung enthält den Ressourcennamen der Frage und der Antwort. |
UPDATED_ANSWER |
Eine Antwort des Standorts wird aktualisiert. Die Benachrichtigung enthält den Ressourcennamen der Frage und der Antwort. |
DUPLICATE_LOCATION |
Gibt an, ob sich das Feld für den doppelten Standort der Standortmetadaten geändert hat. |
LOSS_OF_VOICE_OF_MERCHANT |
Verworfen: Migrieren Sie die vorhandenen Verwendungen dieses Werts auf die erweiterte Version „VOICE_OF_MERCHANT_UPDATED“. |
VOICE_OF_MERCHANT_UPDATED |
Gibt an, ob für den Standort ein Update für den Voice of Merchant-Status (VOM) vorliegt. Das VOM gibt vor, ob sich der Standort in einwandfreiem Zustand befindet und der Händler die Kontrolle über das Unternehmen auf Google hat. Alle Änderungen, die Sie am Standort vornehmen, werden nach Abschluss der Überprüfung in Google Maps übernommen. Rufen Sie für weitere Details GetVoiceOfMerchantState-RPC auf. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]