Google Places API Reviews Widget - google-maps

I'm trying to embed Google's "write a review" widget into my website. Much like what Podium.com does.
They host a page and load an iframe with the src:
https://www.google.com/maps/api/js/ReviewsService.LoadWriteWidget?key=THEIR_API_KEY&pb=!2m1!1sChIJ6VFjYpqa9YgREIJTX-XLyoE!3shttps%3A%2F%2Ftheir-url.com!5sen&cb=37369878
This renders the widget like so:
I dug into their html source and it appears they're using the Google Places Reviews Widget. I searched Google and Google Developers for "Google Places Reviews Widget" which returns results:
However, the links go to a 404 page:
https://developers.google.com/places/reviews/reference
https://developers.google.com/places/reviews/widgets
I've replicated what Podium is doing on my own page using my API key. However, the widget doesn't display. I don't get any errors, the iframe loads some scripts and some hidden html elements, but doesn't render the full widget.
Is this an API or feature that I'm unable to access? Has anyone implemented something similar?

I also had the exact same experience and reached out to Google about it.
Here's their preliminary reply on Sept 4, 2018
Apologies for the delay on this.
May I ask if you followed the steps here:
https://developers.google.com/places/reviews/#api-key
It says there that, "Before you begin coding, notify your Google
contact person that you intend to create a project to use the Google
Places API Reviews Widget. Indicate the email address of the Google
account you intend to use to manage the project. Google will use this
email address to allow you to activate the API for your project.
After your Google contact person has confirmed that your email address
can activate the Google Places API Reviews Widget, you can follow the
instructions here:
https://developers.google.com/places/reviews/#api-key to activate the
API and create your key.
May I ask if you have a contact person? If you don't have one,
apologies but the Review's Widget is not generally available, because
it needs some special authorization before it can be used. Please note
that we are investigating to see if you can get access to that Widget.
If you do have a contact person, please let me know.
Moving forward, may I ask what kind of places would you like to use
the Reviews Widget for?
Then this:
With regards to your intention in using the Review Widget, I would
like you to know that unfortunately, the Review Widget is not
available at the moment yet. We don have a date for expected general
availability for this product but I can get back to you and inform you
once the Review widget is already available publicly. Once again,
apologies for this inconvenience.
And finally:
The Reviews Widget is only actually limited to trusted partners as of
the moment. Moreover, the Review Widget team isn't looking for new
testers at the moment:
With that said, the public documentation on the Reviews Widget has
already been set into private. As mentioned, the Reviews Widget is not
yet available for the general public.
Sorry to be the bearer of bad news...

check this out... I dunno if this helps. i've been trying to figure this out too. A company called BirdEye has this Review Portal that opens the post-review widget on the page. I inspected the code and found that there are 2 JS scripts calling on Google's Places API (image attached). The button code I'm assuming hitting these scripts is just below. Does this make sense to anyone? I'm not able to get into the actual JS file though.
<button class="btnReviewSite2" data-source-url="https://www.google.com/search?q=Innovative+Roofing&ludocid=8385655751686277266&gws_rd=cr&fpstate=lie&lrd=0x87938c4de368e6b3:0x745fd57a1ff8c892,2#trex=m_t:lcl_akp,rc_f:nav,rc_ludocids:8385655751686277266" data-place-id="ChIJs-Zo402Mk4cRksj4H3rVX3Q" data-google-embedded="1" data-source-url_9="" data-source-id="2">
<span class="aggr-source-wrapper">
<span class="rev-site-2 presenceIcon aggr-source-2 aggr-dummy-source-g">
</span>
</span>
<span title="Review us on Google">
</span>
</button>
Google Places API JS Script

Related

Google scripts create new page elements in gmail

I apologize if this is naive, but I couldn't find a succinct answer.
Is it possible to make front end objects (buttons, etc.) appear in someone's gmail inbox using code from a Google script? Or does this require making a browser extension?
I've read the documentation and various tutorials for Google script, but it appears I can only do things like manage settings and send emails, not add entirely new page elements.
Google app scripts overview

Chrome Extension or Gmail Contextual Gadget?

I've been looking into adding an "extension" for gmail, this is for an application at work, basically we want to somehow integrate some options (buttons), somewhere contextual to the email that's being viewed currently.
Our users, will then be able to install extension, and the extension will establish the authorisation aspect (not sure how this is done yet) with our application.
I've so far looked into two options, not sure if I'm on the right track:
Chrome extension, that then uses gmail.js (some third party library on github), and use some jquery to search the DOM to insert a button into the reply/delete toolbar.
I understand that this would be more straight forward but would have issues with it breaking if page layout changes, or class names changes. And would also require uses to be using chrome (which is something we are fine about)
Create a gmail contextual gadget add-on, that sits at the bottom of the email, although, I'm not sure if this contextual gadget will appear at the end of the main thread of an email or inside each individual email and will require expanding?
Also correct me if I'm wrong, but are gmail contextual gadgets limited to users with Google Apps subscription in their company? I.e. we have to subscribe to google apps in our domain and deploy it on the google apps marketplace, and similarly also have the users who want to install this gadget to also be using google apps?
Thank for everyones help in advance.

Share a whatsapp contact over HTML

I would like to create an HTML link so that anyone could easily find me on whatsapp. There is URL Schema that whatsapp provides but there is no way I found on the documentation to share a contact. The only functionality the schema handles is that of sending a message and optionally include an user ID from the existing library.
How would you address this problem? Is there any way to create a contact in the phonebook using HTML? That will also work.
The closest thing I have found is the html "tel" tag, but that may launch other applications other than the contact list to add a new contact.
I found a solution for this issue. It is not perfect, but its the best approach.
Currently the whatsapp protocol does have any features for creating new contacts, but it does have one to send a message to one of your existing contacts/chats. So what I did is to share a message with my contacts details.
whatsapp://send?text=join%20me%20on%20TELEPHONE_NUMBER_HERE%20%3A)
This will open the whatsapp app an the user will see:
join me on TELEPHONE_NUMBER :)
It is not a perfect solution but is something if you want to add a whatsapp link in your site.
Hope it helps.

Is there an example of how to add Replace to Google Docs

Is there an example anywhere of how to use the Document apps-script API to add a button to the Google Docs menu, when it is clicked bring up a web page from my web app that prompts the user for 2 strings, then on OK it does a search & replace on the open document?
I don't need to add search/replace per-se. I just figure this is the simplest example of writing an Add-In to Google Docs that edits the open document.
thanks - dave
As it stands, this is not possible. I think this issue (which you might like to star so that you can receive updates in the thread) best describes it. Summary in post #7:
This feature request is to add the same script functionality to a
document as there is in a spreadsheet. ie menu items etc.
A recent video by google (see their blogs) hints that this will be soon available.
In the meantime u can ask for the document url from your published script interface.
If you make a googledrive.com client app you can even use the new goglepicker to select the doc.

Embedding a link to google map in the email

In my meeting management application, I am trying to send the meeting location information via mail and in the mail content I would like to place a link to to the google map site, so that the meeting place could be seen on the map.
What would be the best way to construct the google map url string (eg. http://maps.google.com/maps?q=address) , for a particular address.
Thanks
Reducing the clutter of arguments to a minimum, this seems to work pretty well:
http://maps.google.com/maps?q=1+infinite+loop,+cupertino,+CA