Search code examples
google-cloud-pubsubgoogle-my-business-apigoogle-my-business

GMB API - Payload schema for notification (pub/sub)


We are working with a google my business integration.

The API documentation is pretty exhaustive, except for the notification schema used on pub/sub. we are unable to find the correct information.

Does anybody know what the data looks like?

API docs


Solution

  • For the new Notifications API, you have the following basic pattern:

    {
      "review":"accounts/*/locations/*/reviews/*",
      "location":"accounts/*/locations/*",
      "type":"NEW_REVIEW"
    }
    

    Q&A messaging is broken (more see Google My Business push notification is not sent for Question and Answers ).

    For GoogleUpdate messages, you will just get the type and location properties.