google-maps - Google Places API 评论小工具

标签 google-maps google-maps-api-3 google-places-api

我正在尝试将 Google 的“撰写评论”小部件嵌入到我的网站中。很像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

这会像这样呈现小部件: Write a Review Widget

我深入研究了他们的 html 源代码,发现他们正在使用 Google Places Reviews Widget。我搜索了GoogleGoogle Developers对于返回结果的“Google Places Reviews Widget”:

Search Result Listing

但是,链接会转到 404 页面:

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

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

最佳答案

我也有过完全相同的经历,并联系了 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.

很抱歉带来坏消息......

关于google-maps - Google Places API 评论小工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52299038/

相关文章:

javascript - Google API 路径未显示

android - 如何正确地在 Google Place Autocomplete 中获取国家/地区、城镇、街道

android - 如何在 Android 中使用 Place Autocomplete intent builder 获取 Place 的开放时间?

javascript - 从 Qt 中读取带有 "evaluateJavaScript"的 javascript 函数的返回值

android - 谷歌地图不显示使用 flutter 的 Android

javascript - 点击在谷歌地图上绘制路线

google-maps-api-3 - Google Map V3 .png 地面覆盖不透明度

android - 使用 10.2.0 获取 google play 服务(Google Places API Android)异常

java - Google API ClusterManager 自定义项目渲染

angular - 如何在 Angular 4 中实现 Google Maps API (initMap)?