电子邮件促销参考
本页面介绍了用于为推广电子邮件添加注解的类型及其相关属性。这些类型和属性以 JSON-LD 形式包含在推广电子邮件的标头中。
如需了解详情,请参阅电子邮件标记使用入门指南。
组织
Organization
类型可用于指定要包含在促销活动中的徽标。
折扣优惠
借助 DiscountOffer
类型,您可以创建交易注释,用于宣传优惠详情,例如折扣代码或失效日期。
名称 |
类型 |
说明 |
description |
文本 |
可选。在交易标记图标旁边显示的简短文字,例如 Free shipping 或 20% off 。请参阅有关交易徽章的最佳做法。 |
discountCode |
文本 |
可选。优惠的折扣或促销代码,例如 20PROMO 。请参阅折扣代码最佳做法。 |
availabilityStarts |
DateTime |
可选。优惠开始的日期和时间(采用 ISO 8601 格式),例如 2023-09-25T18:44:37-07:00 。 |
availabilityEnds |
DateTime |
可选。促销活动的结束日期和时间,采用 ISO 8601 格式(例如 2023-10-25T18:44:37-07:00 )。请参阅失效日期的最佳实践。 |
借助 PromotionCard
类型,您可以直观地预览促销活动。
名称 |
类型 |
说明 |
image |
ImageObject 或 网址 |
必需。PNG 或 JPEG 格式的电子邮件图片预览。 支持的宽高比为 4:5、1:1 和 1.91:1。系统会自动剪裁图片。请参阅关于图片的最佳做法。 对于产品轮播界面,每个 PromotionCard 都必须是一张独一无二的图片,并且使用相同的宽高比。 |
url |
网址 |
必需。推广活动的网址。当用户点击该电子邮件的 image 时,系统便会将其定向到此网址。 |
headline |
文本 |
可选。促销活动的 1 到 2 行说明,显示在 image 下方。 |
price |
文本 |
可选。推广活动的价格。如果您设置了 discountValue ,那么在应用折扣之前,price 会显示为促销活动的原始价格。 |
priceCurrency |
文本 |
可选。价格所用币种(由 3 个字母表示)ISO 4217,例如 USD 。确定与价格一起显示的货币符号。 |
discountValue |
文本 |
可选。从 price 中减去的金额,用于显示调整后的价格。调整后的价格会显示在原价旁边。 例如,如果 discountValue 设为 25 ,price 设为 100 ,priceCurrency 设为 USD ,则调整后的价格显示为 $75 。 |
position |
文本 |
可选。卡片在轮播界面中的位置。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-04-26。
[null,null,["最后更新时间 (UTC):2023-04-26。"],[[["This documentation details the types (`Organization`, `DiscountOffer`, `PromotionCard`) and their properties used to annotate promotional emails for enhanced display in Gmail."],["These annotations are added to the email header as JSON-LD and enable features like logos, deal annotations, and visual promotion cards."],["The `Organization` type allows specifying a sender logo, while `DiscountOffer` is used to highlight deal details like discount codes and expiration dates."],["`PromotionCard` enables a visual preview of the promotion with an image, headline, price, and a link to the offer."],["Refer to the Email Markup Getting Started guide and the best practices for detailed implementation instructions and recommendations for optimal display."]]],["Promotional emails use JSON-LD to include `Organization`, `DiscountOffer`, and `PromotionCard` types. `Organization` includes a `logo` (ImageObject or URL). `DiscountOffer` details include `description`, `discountCode`, `availabilityStarts`, and `availabilityEnds` (DateTime). `PromotionCard` requires an `image` (ImageObject or URL) and `url`; it also supports `headline`, `price`, `priceCurrency`, `discountValue`, and `position`. These elements are used to display visual previews, logos, and offer details in the email.\n"]]