首页 > 解决方案 > Gmail 事件注册标记不起作用

问题描述

我正在尝试从google dev docs测试 gmail 事件注册电子邮件标记,但它没有在 google 日历上添加任何事件。

为了测试我正在使用google app script。我正在使用我的个人 gmail ID,其中包含 @gmail.com

以下是由Email Markup Tester验证的脚本标签

<!DOCTYPE html>
<html>
  <head>
    <script type="application/ld+json">
        {
            "@context": "http://schema.org",
            "@type": "EventReservation",
            "reservationNumber": "E123456789",
            "reservationStatus": "http://schema.org/Confirmed",
            "underName": {
                "@type": "Person",
                "name": "John Smith"
            },
            "reservationFor": {
                "@type": "Event",
                "name": "Foo Fighters Concert",
                "startDate": "2027-03-06T19:30:00-08:00",
                "performer": {
                    "@type": "Organization",
                    "name": "The Foo Fighters",
                    "image": "http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"
                },
                "location": {
                    "@type": "Place",
                    "name": "AT&T Park",
                    "address": {
                        "@type": "PostalAddress",
                        "streetAddress": "24 Willie Mays Plaza",
                        "addressLocality": "San Francisco",
                        "addressRegion": "CA",
                        "postalCode": "94107",
                        "addressCountry": "US"
                    }
                }
            },
            "modifiedTime": "2027-05-01T08:00:00-08:00",
            "modifyReservationUrl": "http://united.com/modifyreservation.html"
        }
    </script>
  </head>
  <body>
    <p>Event Reservation Example</p>
  </body>
</html>

请帮助我找出我在哪里犯了错误,或者模式标记是否有任何问题。或者我在使用谷歌应用脚​​本时是否需要向谷歌注册。

标签: emailgmailschema.orgjson-ldgoogle-schemas

解决方案


推荐阅读