How can I get a direct link to a location review?[ Edited ]
August 2016 - last edited August 2016 by Terry W
Hi. I am loading reviews through the v3 api using a call like this:
$biz = new Google_Service_Mybusiness($client); $location_name = "accounts/XXXXXX/locations/YYYYYY"; $reviews = $biz->accounts_locations_reviews->listAccountsLocationsReviews($location_name)->getReviews();
I get back an array of Review objects, like the docs say, but when I try to link back to a review I can't because the URL is not provided in the response.
So far, the best I've been able to do so far is link to the "Reviews" tab for the plus page: like so:
Where ZZZZZZZ is the PlusPageId of the location (if available).
I'd really like to be able to link back the review itself so that my customer can type a reply. But that link uses an integer ID that I don't seem to have access to:
Where YYYYYYY would seem to be the ReviewId.
But, the ReviewId I get back in the response to getReviews() is an encrypted string. I need the integer ID.
Does anyone know how I can either (a) get the permalink to a specific review, or (b) get the ReviewId as the integer ID instead of an encrypted string?
Thanks in advance,
Re: How can I get a direct link to a location review?
Hi @David W,
The reviewId of the Review object is the encrypted unique identifier for a specific review. You cannot derive a URL to read and reply to a specific review in the Google My Business UI from the reviewId. I suggest you create you custom UI and send a POST request to create or update a reply to the specified review with its reviewId. Please note that the operation to reply to a location review is only valid if the specified location is verified.