我按照谷歌推广电子邮件代码模板起草了一个演示。 https://developers.google.com/gmail/promotab/overview
并且代码也通过了谷歌化妆测试 https://www.google.com/webmasters/markup-tester/
但是,当我使用电子邮件工具将以下代码插入 HTML 编辑器并发送 EDM 时,没有任何效果,它只是像普通电子邮件一样显示(促销框中没有出现图像/横幅)。
我看到谷歌有另一个文件,但它只解决了“一键式”/“执行操作”电子邮件 https://developers.google.com/gmail/markup/apps-script-tutorial
如果有人可以帮助指出错误,将不胜感激。
仅供参考 促销电子邮件标记不需要列入白名单
<!-- Paste your own code here, or change the existing code to experiment with what works -->
<!-- Feel free to paste the entire HTML of your email -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script type="application/ld+json">
[{
"@context": "http://schema.org/",
"@type": "Organization",
// WARNING: Before sending email, either point the logo
// at your own image or delete the logo annotation.
//
// If showing a logo, we recommend using an https URL.
// It's not a requirement today, but may be in the future.
"logo": "https://www.gobear.com/hk//themes/custom/gobear/apple-touch-icon.png"
},{
"@context": "http://schema.org/",
"@type": "EmailMessage",
// Use this optional alternative subject line to avoid duplicate text
// between the subject, deal badge, and discount code.
"subjectLine": "【後疫情時代】幫你睥實全港理財貼士 "
},{
"@context": "http://schema.org/",
"@type": "DiscountOffer",
// Describe your discount, this will be shown as a badge (eg "25% off" or "free shipping")
"description": "6月理財小貼士",
"availabilityStarts": "2020-07-18T22:51:01-07:00",
"availabilityEnds": "2020-07-31T22:51:01-07:00"
},{
// Promotion card with single image.
// We recommend using an https URL. It's not a requirement today, but may be in the future.
// Any image size will work and will just be cropped automatically.
// GIF & WEBP images are not supported and will be filtered out.
// Sample image is 538x138, 3.9 aspect ratio
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://newtwb.s3.amazonaws.com/images/gobearhk/GoBear_Edm_banner_20200618.jpg"
}]
</script>
</head>