我尝试了很多东西和标签,包括使用宏数据和JSON-LD,但是我无法显示公司徽标。
我不确定如何显示图片,如其文档页面here上的google示例所示。
[
{
"@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>>"
}
}
]
如果有兴趣的话,我会分享更多信息,欢迎任何帮助。
答案 0 :(得分:0)
当我查看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。
答案 1 :(得分:0)
@Yash Cauhan我注意到你的事件类型是&#34; BusinessEvent。&#34;通过我的知识和测试,我注意到图像仅在使用事件类型&#34; MusicEvent时出现。&#34;
浏览documentation时,我注意到图片属性仅用于Music Event示例。作为一种解决方法,如果您想要显示图像,我会将您的事件类型设置为MusicEvent。
我希望这会有所帮助。