【问题标题】:How to show company logo in google now card using google email event reservation schema如何使用谷歌电子邮件事件预订模式在谷歌即时卡中显示公司徽标
【发布时间】:2017-04-04 10:02:57
【问题描述】:

我尝试了很多东西和标签,包括使用宏数据和 JSON-LD,但是我无法显示公司徽标。

我不确定如何显示图像,如他们文档页面上的 google 示例中所示 here。

[
    {
      "@context": "http://schema.org",
      "@type": "EventReservation",
      "reservationNumber": "OIU888888",
      "reservationStatus": "http://schema.org/Confirmed",
      "url": "http://example.com",
      "underName": {
        "@type": "Organization",
        "name": "ABC, Inc."
      },
      "reservationFor": {
        "@type": "BusinessEvent",
        "name": "Invite",
        "url": "http://example.com",
        "performer": {
          "@type": "Organization",
          "name": "ABC",
          "image": "http://103.56.173.67/images/footer-logo.png"
        },
        "startDate": "2016-11-18T19:00:00",
        "location": {
          "@type": "Place",
          "name": "AT&T Park",
          "address": {
            "@type": "PostalAddress",
            "streetAddress": "AT&T Park",
            "addressLocality": "San Francisco",
            "addressRegion": "CA",
            "postalCode": "94107",
            "addressCountry": "US"
          }
        }
      },
      "potentialAction":{
        "@type": "ViewAction",
        "target" : "<<MobileAccess>>",
        "url": "http://example.com",
        "name" : "<<GMJoinByComputer>>"
      }
    }
]

如果有人感兴趣,我会分享更多信息,欢迎任何帮助。

【问题讨论】:

    标签: google-schemas


    【解决方案1】:

    当我查看documentation 时,请务必查看电子邮件的详细信息,以查看这些属性是否适用于您的活动预订。确保您已将 reservationFor.image 属性用于事件图像的 URL。

    如果有帮助,您可以查看这些 SO 线程:Can you and how do you embed images in an email when using the Gmail API? 和 Google Now Event card - How to display more information。

    【讨论】:

    • 我已经做到了,我认为可以与link 或此处link 相关的一点。因为我正在测试这个所以可能是我无法显示图像的情况,因为来自地址将永远是我的,我使用的电子邮件和个人资料是公司之一。有什么建议?此外,我担心的是在 google now card 中显示图片,而不是在电子邮件中。
    【解决方案2】:

    @Yash Cauhan 我注意到您的事件类型是“BusinessEvent”。通过我的知识和测试,我注意到图像仅在使用事件类型“MusicEvent”时出现。

    浏览documentation 时,我注意到图像属性仅用于Music Event 示例。作为一种解决方法,如果您希望显示图像,我会将您的事件类型设置为 MusicEvent。

    我希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-13
      • 2013-04-04
      • 2017-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多