電子郵件促銷參考資料
本頁面說明將促銷電子郵件及相關屬性加上註解的類型。這些類型與屬性包含在促銷電子郵件標頭中,做為 JSON-LD。
詳情請參閱電子郵件標記入門指南。
機構
Organization
類型可用來指定要加入促銷活動的標誌。
折扣優惠
DiscountOffer
類型可讓您建立「交易註解」,用來推送優惠詳細資料,例如折扣代碼或到期日。
姓名 |
類型 |
說明 |
description |
Text |
選用設定。在優惠徽章圖示旁顯示的簡短文字,例如 Free shipping 或 20% off 。請參閱交易徽章的最佳做法。 |
discountCode |
Text |
選用設定。優惠的折扣或促銷代碼,例如 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 或 URL |
必要欄位。電子郵件的 PNG 或 JPEG 格式圖片預覽。 支援的長寬比為 4:5、1:1 和 1.91:1。圖片會自動裁剪。請參閱映像檔的最佳做法。 如果是產品輪轉介面,每個 PromotionCard 都必須使用專屬的圖片,且長寬比必須相同。 |
url |
網址 |
必要欄位。促銷活動的網址。當使用者點選電子郵件的 image 時,系統會將他們導向至這個網址。 |
headline |
Text |
選用設定。顯示在 image 中的 1 到 2 行說明。 |
price |
Text |
選用設定。促銷活動價格。如果您設定了 discountValue ,price 會在套用折扣之前顯示為促銷活動的原始價格。 |
priceCurrency |
Text |
選用設定。價格的幣別,格式為 3 個字母的 ISO 4217 格式,例如 USD 。決定顯示價格的貨幣符號。 |
discountValue |
Text |
選用設定。從 price 減去的金額,顯示調整後的價格。調整後的價格將顯示在原價旁。 舉例來說,如果 discountValue 設為 25 、price 設為 100 ,而 priceCurrency 為 USD ,則調整後的價格會顯示為 $75 。 |
position |
Text |
選用設定。資訊卡在輪轉介面中的位置。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-04-26 (世界標準時間)。
[null,null,["上次更新時間: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"]]