# 营销类消息 vs. 事务类消息

当通过 Push、Email、In-App、SMS、WhatsApp 或 Viber 发送消息时，您可以选择消息是**营销类**还是**事务类**。此选择决定了 Pushwoosh 如何应用用户偏好、频率限制和[全局控制组](/zh/product/audience-data-and-segmentation/global-control-group/)。


## 选择正确的消息类型

<Aside type="tip">

将**营销类**消息用于可以尊重用户选择和限制的营销活动。将**事务类**消息保留用于必要的、由用户触发或系统要求的通信。将其用于促销内容可能会导致合规性问题和用户投诉。
</Aside>

| 消息类型 | 营销类消息 | 事务类消息 |
| ----- | ----- | ----- |
| **用户偏好** | 尊重订阅偏好。仅发送给选择加入您在营销活动中选择的[订阅类别](/zh/product/messaging-channels/emails/email-preferences/#how-email-categories-and-message-delivery-work)的用户。 | 绕过用户偏好。发送给所有用户，包括那些已退订营销消息的用户。 |
| **频率上限** | 适用[全局频率上限](/zh/product/messaging-channels/global-frequency-capping/)和[静默期](/zh/product/customer-journey/journey-settings/#silence-period)。 | 不适用频率上限和静默期。 |
| **控制组** | 排除[全局控制组](/zh/product/audience-data-and-segmentation/global-control-group/)中的用户。 | 包括全局控制组中的用户。 |
| **典型用例** | 促销和优惠、新闻通讯、产品和功能更新、重新互动、生命周期营销活动、公告。 | 账户和安全、订单和支付、重要通知、验证。 |

## 在哪里设置消息类型
消息类型在特定渠道的设置中进行设置：可以在 Journey 元素中或在一次性消息表单中设置。

* **Email**：消息类型在 Customer Journey 和发送一次性消息时可用。在 Journey 中，在 [Email 元素](/zh/product/customer-journey/journey-elements/channels/email/#set-message-type)中设置。对于一次性电子邮件，在[营销活动设置](/zh/product/messaging-channels/emails/sending-emails/send-one-time-emails/#select-message-type)中设置。
* **Push**：消息类型在 Customer Journey 和发送一次性推送时可用。在 Journey 中，在 [Push 元素](/zh/product/customer-journey/journey-elements/channels/push/#set-message-type)中设置。对于一次性推送，在[营销活动设置](/zh/product/messaging-channels/push-notifications/one-time-push/)中设置。
* **In-app**：消息类型仅在 Customer Journey 中可用。在构建 [Customer Journey](/zh/product/messaging-channels/in-apps/send-in-apps/send-in-apps-via-customer-journey/) 时，在 [In-app 元素](/zh/product/customer-journey/journey-elements/channels/in-app/#set-message-type)中设置。
* **SMS**：在构建 [Customer Journey](/zh/product/customer-journey/pushwoosh-journey-overview/) 时，在 [SMS 元素](/zh/product/customer-journey/journey-elements/channels/sms/#set-message-type)中设置。
* **WhatsApp**：在构建 [Customer Journey](/zh/product/customer-journey/pushwoosh-journey-overview/) 时，在 [WhatsApp 元素](/zh/product/customer-journey/journey-elements/channels/whatsapp/#set-message-type)中设置。
* **Viber**：在构建 [Customer Journey](/zh/product/customer-journey/pushwoosh-journey-overview/) 时，在 [Viber 元素](/zh/product/customer-journey/journey-elements/channels/viber/#set-message-type)中设置。这与模板/自由格式内容的选择是分开的，后者仅影响定价。

## API 请求和消息类型

在 API 中使用与控制面板中相同的 **marketing** 和 **transactional** 值。

对于推送，请参阅 [`/createMessage` 参数](/zh/developer/api-reference/messages-api/api-prerequisites/#message_type)。对于电子邮件，请参阅 [`createEmailMessage`](/zh/developer/api-reference/email-api/#createemailmessage)。