json - 用于 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>
解决方案
在使用以promotabtesting@gmail.com
. 我还没有在 iOS 设备上看到这项工作,也没有在非测试 Gmail 帐户上看到这项工作(https://developers.google.com/gmail/promotab/best-practices#testing)
推荐阅读
- python - 使用 Python 抓取网络巴士时刻表
- docker - -t 标志如何保持容器运行?
- json - 错误:未为“对象”类型定义运算符“[]”。尝试了几种方法,但其中任何一个都不起作用
- java - 重置redis中的TTL
- javascript - 无法获取具有特定电子邮件和特定状态的用户 mongodb
- c# - ASP.NET MVC 中的发布操作始终接收 null
- node.js - 使用 Ajax 下载文件
- machine-learning - 如何从 3D 体积中提取重叠补丁并从补丁重新创建输入形状?
- sql - 如何根据 SQL(最好是 Bigquery)中的有效和到期日期检测更改的行?
- flexbox - 将孩子的高度与flex中的动态宽度相等