gpt4 book ai didi

多个事件的 Gmail 标记

转载 作者:行者123 更新时间:2023-12-01 14:59:36 28 4
gpt4 key购买 nike

我正在使用 json-ld 开发事件标记以包含在确认电子邮件中。

我的一些事件会定期重复发生。但是,最新的 Schema.org 规范不支持重复发生的事件,因此我遵循了此处提供的建议:http://lists.w3.org/Archives/Public/public-vocabs/2011Dec/0062.html并决定嵌入单个事件的 json 列表。

json-ld 通过了 google 提供的 Email Markup Tester (https://www.google.com/webmasters/markup-tester/u/0/) 的测试。

但是,当我通过向自己发送电子邮件来测试 Google 日历集成时,该系列的 6 个事件中只有 1 个出现在我的日历中(奇怪的是,它既不是列表中的第一个也不是最后一个事件)。

gmail 标记是否支持同一封电子邮件中的多个事件?如果可以,是否有更好的方法?

示例标记:

<script type="application/ld+json">
[
{
"reservationNumber": "7e15afb6b2485005e55481be58de4141b70f85006bd25823",
"reservationFor": {
"startDate": "2015-05-09T16:00:00-07:00",
"endDate": "2015-05-09T22:30:00-07:00",
"description": "regularly schedule XXXX",
"location": {
"address": {
"addressCountry": "US",
"addressLocality": "XXX",
"addressRegion": "XXX",
"streetAddress": "XXX",
"postalCode": "XXX",
"@type": "PostalAddress"
},
"@type": "Place",
"name": "XXX"
},
"@type": "Event",
"name": "XXX Every 2 Weeks"
},
"modifyReservationUrl": "https://example.com/XXX",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "XXX"
},
"@context": "http://schema.org",
"@type": "EventReservation"
},

...

{
"reservationNumber": "40553edbce52f0052e153919a4dad49ec32516c15433bf4a",
"reservationFor": {
"startDate": "2015-05-23T16:00:00-07:00",
"endDate": "2015-05-23T22:30:00-07:00",
"description": "regularly schedule XXX",
"location": {
"address": {
"addressCountry": "US",
"addressLocality": "XXX",
"addressRegion": "XXX",
"streetAddress": "XXX",
"postalCode": "XXX",
"@type": "PostalAddress"
},
"@type": "Place",
"name": "XXX"
},
"@type": "Event",
"name": "XXX Every 2 Weeks"
},
"modifyReservationUrl": "https://example.com/XXX",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "XXX"
},
"@context": "http://schema.org",
"@type": "EventReservation"
},
]
</script>

最佳答案

您可以尝试使用文档中提到的快应用脚本教程在 html 文件中添加此标记 here .

关于多个事件的 Gmail 标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29905838/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com