【发布时间】:2015-11-20 14:55:27
【问题描述】:
我一直在尝试将 Google 架构(LodgingReservation 架构)集成到我公司的酒店预订确认电子邮件中,以使相应的酒店预订卡出现在 Google Now/Google 搜索中,如以下 Google 文档中所述:
https://developers.google.com/gmail/markup/reference/hotel-reservation
我已多次向我的 Gmail 帐户发送包含 JSON 标记的测试电子邮件,打开电子邮件,然后多次刷新我的 Google Now 应用程序的提要,但那里没有显示预订卡。
我确实收到了一些其他类型的卡片,例如本地天气信息、日历中的活动提醒等。我多次检查了我的 Google 帐户和 Android 手机上的设置,尝试使用同事的不同帐户和手机,但不会在任何地方显示。
但是:
通过电子邮件查看源代码,我能够确认预期的标记存在,甚至使用以下 Google 工具进行了验证:https://www.google.com/webmasters/markup-tester/
使用我的 Google 帐户,我可以看到我的 Google Card 历史记录包含一张“旅行”类型的卡,据说是今天收到的,并且出现在我测试过的每部手机/Google 帐户上,其中一些预订确认电子邮件发送后几秒钟
根据这些信息,我假设我的帐户以某种方式识别了该卡,但我不明白为什么它不会显示在 gNow 提要中...
有人对此有什么想法吗?
这是我在电子邮件中发送的标记:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "LodgingReservation",
"reservationNumber": "872914",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Max Mustermann"
},
"reservationFor": {
"@type": "LodgingBusiness",
"name": "Verkaufshotel Blaue Linde",
"address": {
"@type": "PostalAddress",
"streetAddress": "Industriestra&#223;e 27",
"addressLocality": "Offenburg",
"addressRegion": "Ortenau",
"postalCode": "77656",
"addressCountry": "Deutschland"
},
"telephone": "+49 781 310 55 0"
},
"checkinDate": "2015-11-20T11:00:00-08:00",
"checkoutDate": "2015-11-23T11:00:00-08:00"
}
</script>
【问题讨论】:
-
您所在的国家/地区可能不支持 Google Now。您可以在此处找到可以启用 Google Now 的国家/地区列表:support.google.com/websearch/answer/6245953?hl=en
标签: android json gmail google-schemas google-now