Google 地点 API 评论小工具

Google Places API Reviews Widget

我正在尝试将 Google 的 "write a review" 小部件嵌入到我的网站中。很像 Podium.com 所做的。

他们托管一个页面并加载带有 src 的 iframe:

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

这会像这样呈现小部件:

我深入研究了他们的 html 来源,他们似乎在使用 Google Places Reviews 小部件。我在 Google and Google Developers 中搜索了 "Google Places Reviews Widget",returns 结果:

但是,链接转到 404 页面:

我已经使用 API 键复制了 Podium 在我自己的页面上所做的事情。但是,小部件不显示。我没有收到任何错误,iframe 加载了一些脚本和一些隐藏的 html 元素,但没有呈现完整的小部件。

这是我无法访问的 API 或功能吗?有人实施过类似的东西吗?

检查一下...我不知道这是否有帮助。我也一直在想办法解决这个问题。一家名为 BirdEye 的公司拥有此评论门户,可在页面上打开 post-评论小部件。我检查了代码,发现有 2 个 JS 脚本调用 Google 的 Places API(附图)。我假设点击这些脚本的按钮代码就在下面。这对任何人都有意义吗?不过我无法进入实际的 JS 文件。

<button class="btnReviewSite2" data-source-url="https://www.google.com/search?q=Innovative+Roofing&amp;ludocid=8385655751686277266&amp;gws_rd=cr&amp;fpstate=lie&amp;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

我也有完全相同的经历,因此联系了 Google。

这是他们在 2018 年 9 月 4 日的初步回复

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?

然后这个:

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.

最后:

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.

很抱歉成为坏消息的传递者...