My Business
2.5K members online now
2.5K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Incremental collection or Webhooks

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi 


Using the API, is there a way to do incremental collection? we are trying to do daily collection and we have to collect everything all time. Is there a way to specify new reviews since last collection?

 

Also, is there a plan to do webhooks / callbacks to collect reviews.. 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Sathya K
September 2016

Re: Incremental collection or Webhooks

[ Edited ]
Google Employee
# 2
Google Employee

Hi @Sathya K,

 

*Latest update*:

Please check out the Introducing Google My Business API v3.1 post that introduced the functionality which allows you to Subscribe and manage push notifications for new customer reviews on Google. Please note that Real-time Notifications are published in conjunction with Google Cloud Pub/Sub. Before enabling notifications, you need to follow the get started guide to set up Google Cloud Pub/Sub and create a topic.

 

Real-time webhooks subscriptions or push notifications are not available for retrieving reviews via previous versions including v3 of the Google My Business API. Prior to v3.1 of the API, a poll-based sync list operation is the recommended approach to retrieve review updates.

 

You can certainly conduct incremental data collection at your end, but please be aware of the Policies for Caching or Storage. If you are not using Real-time Notifications in v3.1 of the API, I suggest you filter and show only reviews with a specific createTime or updateTime for your daily polling. You can find a code snippet for printing all reviews filtered by the updateTime in this thread.

 

Thanks,

Terry

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Sathya K
September 2016

Re: Incremental collection or Webhooks

[ Edited ]
Google Employee
# 2
Google Employee

Hi @Sathya K,

 

*Latest update*:

Please check out the Introducing Google My Business API v3.1 post that introduced the functionality which allows you to Subscribe and manage push notifications for new customer reviews on Google. Please note that Real-time Notifications are published in conjunction with Google Cloud Pub/Sub. Before enabling notifications, you need to follow the get started guide to set up Google Cloud Pub/Sub and create a topic.

 

Real-time webhooks subscriptions or push notifications are not available for retrieving reviews via previous versions including v3 of the Google My Business API. Prior to v3.1 of the API, a poll-based sync list operation is the recommended approach to retrieve review updates.

 

You can certainly conduct incremental data collection at your end, but please be aware of the Policies for Caching or Storage. If you are not using Real-time Notifications in v3.1 of the API, I suggest you filter and show only reviews with a specific createTime or updateTime for your daily polling. You can find a code snippet for printing all reviews filtered by the updateTime in this thread.

 

Thanks,

Terry