我将架构插入到确认JSON-LD格式的事件注册的电子邮件中。我用Google AppScript邮寄给自己。但是我无法在Google即时中看到触发的卡片。该标记已经过Google的标记测试人员验证,并且有效。
<html>
<body>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "EventReservation",
"reservationNumber" : "SDCC12345",
"reservationFor" : {
"@type" : "Event",
"name" : "San Diego Comic Con 2014",
"startDate" : "2014-07-29T08:30",
"location" : {
"@type" : "Place",
"name" : "San Diego Convention Center",
"address" : {
"@type" : "PostalAddress",
"streetAddress" : "111 West Harbor Drive",
"addressLocality" : "San Diego",
"addressRegion" : "California",
"addressCountry": "USA"
}
}
},
"underName" : {
"@type" : "Person",
"name" : "Jon Snow"
},
"reservationStatus": "confirmed"
}
</script>
<p>
Dear Jon, thanks for booking your San Diego Comic Con ticket with us.
</p>
<p>
BOOKING DETAILS<br/>
Order for: Jon Snow<br/>
Event: San Diego Comic Con 2014<br/>
When: July 27th 2014 8:30am PST<br/>
Venue: 111 West Harbor Drive, San Diego,California<br/>
Reservation number: SDCC12345<br/>
</p>
</body>
</html>
这可能是什么问题?
答案 0 :(得分:0)
您的代码与我的代码略有不同,但我的代码已经有效。有明显差异的部分是:
订单无关紧要,所以暂时不要这样做,并尝试将状态值更改为:
"reservationStatus": "http://schema.org/ReservationConfirmed",
然后更改“开始日期”值格式以包含时区,类似于:
"startDate": "2015-04-25T15:00:00-00:00",
如果这不起作用,请尝试按以下顺序订购数据:
干杯, 康纳