我们已经成功地为我们的电子邮件实现了Gmail注解。然而,随着黑色星期五的到来,我们希望在目录卡中使用多个图像。我找到了reference guide,它调用了项目属性等,但我不知道如何将其编码到JSON-LD中。我使用250 ok/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>
1条答案
按热度按时间atmip9wb1#
我在使用以
promotabtesting@gmail.com
结尾的Gmail账户时,看到过目录卡在最新版本的Android Gmail中工作。我还没有看到它在iOS设备上工作,也没有在非测试Gmail账户上工作(https://developers.google.com/gmail/promotab/best-practices#testing)