首页 > 解决方案 > 用于 Gmail 注释的 CatalogCardLayout(轮播图像)

问题描述

我们已经成功地为我们的电子邮件实施了 Gmail 注释。然而,随着黑色星期五的临近,我们希望在目录卡片中使用多个图像。我找到了调用项目属性等的参考指南,但我不知道如何将其编码为 JSON-LD。我使用 250ok/Validity 的脚本作为基础,如下所示。有人可以帮我编码或提供目录卡注释的示例代码吗?

<script type="application/ld+json">
[{
    "@context": "http://schema.org/",
    "@type": "Organization",
    "logo": "http://250ok.com/img/favicon-black.png"
},{
    "@context": "http://schema.org/",
    "@type": "EmailMessage",
    "subjectLine": "Time to renew your 250ok Account"
},{
    "@context": "http://schema.org/",
    "@type": "DiscountOffer",
    "description": "10% off",
    "discountCode": "RENEW2019",
    "availabilityStarts": "2020-11-06T08:00:00-07:00",
    "availabilityEnds": "2020-11-25T08:00:00-07:00"
},{
    "@context": "http://schema.org/",
    "@type": "PromotionCard",
    "image": "https://s3.amazonaws.com/250ok-wordpress/wp-content/uploads/2018/12/03212604/promo_sample.png"
}]
</script>

目录卡片轮播的示例图像

标签: jsonannotationscatalogcardgmail-promo-tab

解决方案


在使用以promotabtesting@gmail.com. 我还没有在 iOS 设备上看到这项工作,也没有在非测试 Gmail 帐户上看到这项工作(https://developers.google.com/gmail/promotab/best-practices#testing


推荐阅读