> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/promo-codes/bulk-upload-promo-codes.md).

# 批量上传促销代码

如果你想创建多个促销代码，请使用 **批量上传** 功能上传包含促销代码数据的 CSV、XLS 或 XLSX 文件。

请参阅 *促销代码批量上传参考表* 以下第 3 步以帮助你构建此文件。为确保上传成功，请将 XLS/XLSX 文件大小保持在 1MB 以内，CSV 文件大小保持在 5MB 以内。验证仅严格基于文件大小，因此对行数没有具体限制。

{% hint style="warning" %}
**警告：** 请确保你的 CSV/XLS 文件中的列标题与下方列名完全一致（区分大小写和空格），否则文件上传可能会被拒绝。
{% endhint %}

{% hint style="info" %}
**示例：** 下面的示例适用于一个示例促销代码 `10PEROFF`.

```programlisting
促销代码,活动 ID,媒体 ID,类型,积分规则,匹配模式,交易
Name10PEROFF,4321,1299679,TRACKING,ALWAYS,LI,
```

{% endhint %}

#### 批量上传跟踪促销代码

1. 从左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[Engage]** → **内容** → [**促销代码**](https://app.impact.com/secure/advertiser/engage/ads/view-adv-promo-codes-flow.ihtml).
2. 在 *促销代码* 界面上，选择 **批量上传**.
3. 选择 **选择文件** 然后找到并选择包含你要上传的促销代码的 Excel 或 CSV 文件。

{% hint style="success" %}
**注：** 请确保你的文件使用下表所示的必需列格式。
{% endhint %}

4. 选择 **下一步**.
5. 检查将要上传的促销代码列表。如果详情正确，请选择 **接受并创建促销代码**.
6. 如果上传成功，新的 *跟踪促销代码* 会被创建并列在 *促销代码* 界面上。

| 列      | 类型  | 必填 | 描述                                                                                                                                                |
| ------ | --- | -- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| 促销代码   | 字符串 | 是  | 要分配的唯一促销代码。                                                                                                                                       |
| 项目 ID  | 整数  | 是  | 该广告所属的唯一 impact.com 项目 ID。                                                                                                                        |
| 媒体 ID  | 整数  | 是  | <p>将为该促销代码分配的 impact.com 媒体 ID。此字段可以是合作伙伴 ID 或媒体来源 ID。</p><p>通过此字段，每个上传的跟踪促销代码只能分配给 1 个合作伙伴或媒体来源。如果另一个合作伙伴推广该代码，impact.com 会将产生的转化标记为无效转化并撤销。</p> |
| 类型     | 字符串 | 是  | <p>促销代码类型。允许的值：</p><p><code>TRACKING</code></p>                                                                                                   |
| 积分规则   | 字符串 | 是  | <p>促销代码积分规则。允许的值：</p><p><code>ALWAYS</code></p><p><code>INVOLVED</code></p><p><code>WINNER</code></p>                                             |
| 匹配模式   | 字符串 | 是  | <p>促销代码匹配模式。允许的值：</p><p><code>LI</code> （精确/字面）</p><p><code>RE</code> （正则/正则表达式）</p>                                                              |
| 交易 ID  | 整数  | 否  | 此促销代码应关联的交易唯一 ID。该交易必须已存在于你的项目中。                                                                                                                  |
| 生效开始日期 | 日期  | 否  | 使你能够安排此限制。此项为 [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) 日期。示例格式： `2013-06-30T00:00:00-07:00`                                              |
| 生效结束日期 | 日期  | 否  | 这是一个 ISO8601 日期。示例格式： `2013-06-30T00:00:00-07:00`                                                                                                 |
| 时区     | 字符串 | 否  | 时区将从开始日期推导，但如果你想用特定时区覆盖，请在此处输入完整名称，例如： `America/New_York`.                                                                                        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/promo-codes/bulk-upload-promo-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
