Notifications

A 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.

JSON representation
{
  "name": string,
  "topicName": string,
  "notificationTypes": [
    enum(NotificationType)
  ]
}
Fields
name

string

Output only. The notifications resource name.

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 must have at least Publish permissions on the Cloud Pub/Sub topic.

notificationTypes[]

enum(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.

NotificationType

Type of notification sent to the Cloud Pub/Sub topic.

Enums
NOTIFICATION_TYPE_UNSPECIFIED No notification type. Will not match any notifications.
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.
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 locationName will have the location's resource name.
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 locationName will have the location's resource name.
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.

Send feedback about...

Google My Business API
Google My Business API
Need help? Visit our support page.