我的EventReservation
标记已获得Google批准,但我注意到有时与我关联的ViewAction
(一个简单链接)从Gmail中消失,我想知道可能导致什么原因这个问题。
标记示例:
{
{
"@context":"http://schema.org",
"@type":"EventReservation",
"reservationStatus":"http://schema.org/Confirmed",
"reservationNumber":XXX,
"url":"XXX",
"action": {
"@type":"ViewAction",
"name":"Message Host",
"url":"XXX"
},
"modifiedTime":"2015-08-13T17:56:29+0000",
"underName": {
"@type":"Person",
"name":"XXX"
},
"reservationFor": {
"@type":"Event",
"name":"XXX",
"image":"XXX",
"startDate":"2015-08-17T10:42:28-0400",
"endDate":"",
"location": {
"@type":"Place",
"name":"",
"address": {
"streetAddress":"XXX",
"addressLocality":"XXX",
"addressRegion":"XXX",
"postalCode":"XXX",
"addressCountry":"XXX"
}
}
}
}
答案 0 :(得分:0)
有几种方法可以使用EventReservation模式生成按钮。您可以使用URL属性生成“查看故障单”按钮:
"url": "https://example.com"
要获得“修改预订”按钮,请使用modifyReservation属性:
"modifyReservationUrl": "https://example.com
在您发布的示例中,我假设您尝试使用ViewAction架构触发自定义操作标签。我能够通过首先定义顶级事件预留然后查看操作来实现此目的。我的例子如下:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "123456",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "John Smith"
},
"reservationFor": {
"@type": "Event",
"name": "Example Event",
"startDate": "2015-08-17T14:30:00-08:00",
"location": {
"@type": "Place",
"name": "AT&T Park",
"address": {
"@type": "PostalAddress",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94107",
"addressCountry": "US"
}
}
},
"potentialAction": {
"@type": "ViewAction",
"name": "View Event",
"target": "https://www.example.com"
}
}
</script>
操作按钮不会消失,应保留:
答案 1 :(得分:0)
json + ld标记。
我发现Mandrill正在删除我的标记,直到我将格式从json + ld更改为微数据。