> 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/ads/create-ads/create-an-article-asset.md).

# 创建文章资产

impact.com 支持静态和动态 HTML 广告，包括搜索小组件、嵌入式表单和商品横幅。作为一 *文章素材*，您可以随时更新您的 HTML 广告，无需第三方工具。要上传，请包含以下两个必需项：

* 一个安全的 HTTPS 落地页（一个绝对 URL，以 `http://` 或 `https://`).
* 您希望在用户点击广告时跟踪的任何动态 URL 令牌。

#### 创建文章素材

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) **\[参与]** → **内容** → [**广告**](https://app.impact.com/secure/advertiser/engage/ads/manage-all-ads-flow.ihtml).
2. 在右上角，选择 **创建广告** ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]**，然后选择 **文章**.
3. 请在以下部分填写信息：

<details>

<summary>素材详情</summary>

1. 输入一个 **名称** 用于您的素材。
2. 可选地，输入一个 **描述** 提供有关素材的详细信息。
3. 在 *落地页*中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** **自定义** 为您的素材配置自定义落地页。将设置保持为 **默认** 将客户引导到您的项目落地页。
4. 可选地， ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[开启] 移动端备用链接** ，如果 impact.com 未检测到您的应用已安装，可将此素材的移动流量重定向。只有您在您的设置中配置的移动操作系统 [移动应用设置](/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/mobile-app-tracking/set-up-a-mobile-app.md) 中配置的移动操作系统。
   * **Android** — 从 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** 下方 *Android*中，选择一个备用选项。随后此选择将填入用于下载你应用的 URL。
   * **iOS** — 从 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** 下方 *iOS*中，选择一个备用选项。随后此选择将填入用于下载你应用的 URL。
5. 要向落地页跟踪链接添加参数，请选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加元数据]**。这些参数将添加到素材跟踪链接的末尾。
   * 了解更多关于 [跟踪链接参数](/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/tracking-explained/tracking-link-parameters-explained.md).
6. 可选地，输入 **标签** 以使您的素材更易于搜索。
   * 了解有关创建和管理以下内容的更多信息： [素材标签](/brand/zh/what-would-you-like-to-learn-about/platform-features/ads/manage-ads/add-labels-to-assets.md).
7. ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[打开切换] 限制合作伙伴访问** 以设置哪些合作伙伴组可以使用此素材，并搜索 **合作伙伴组** 你要授予此素材访问权限的对象。

</details>

<details>

<summary>素材配置</summary>

1. 在 *内容* 字段，输入您广告的 HTML/CSS/JS 代码，或使用富文本编辑器选项更轻松地格式化您的内容。
   * **提示：** 您可以使用富文本编辑器将图像直接以内联方式上传到内容中。
2. 如果您使用动态令牌，请选择 **插入其他动态字段** 以查看所有可用的令牌插入项。
   * 请参阅下面的 *动态令牌* 下面的参考信息，了解每个令牌插入的内容类型。
3. 可选地，选择一个 **素材尺寸** ，方法是从以下项中选择一个分辨率 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]**.
   * 该 *其他* 选项可让您配置自定义尺寸。

</details>

<details>

<summary>促销详情</summary>

1. 可选地，选择一个现有的 **优惠活动** 或 **添加新优惠活动** 从 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]**.
2. 可选地，设置 **开始** 和 **结束日期** 用于素材，并设置一个 **时区** 从 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]**.
3. 选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-82e75b518a6cfe0fb2fedc3e1d21154fc9dee900%2F3754728747f89a16597a42d74f841edf8612889648f257c01aff47a200ac144d.svg?alt=media) **\[日历]** 以应用素材日期，然后设置 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** 来设置开始和结束时间。

* Optionally, select ![](https://1651675991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpVKEIcehMut8QKRmaUZu%2Fuploads%2FOCaWcqWQdbBn7MBnXC7J%2Funcheck%20box.svg?alt=media\&token=beed3b36-d113-45af-b9c4-e07c556537fb) **\[Unchecked box]** **change landing page on expiration** and proceed by selecting **Configure Rule** to configure what happens if the landing page expires. Select the expiration rule you want to apply from the options below and then click **Submit**:

1. 可选地，指定素材是否为 **季节性** 并使用 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** 来选择相关的促销周期。
2. 在 *附加促销选项*，您可以选择您的 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-9fd92d4378edf839f6a1f6fc0beaa1660b3892b5%2F69842c54f03332c1e2eed608d72b25ad10248384a914164a7255a1e94dc76ee2.svg?alt=media) **\[复选框] 优惠是畅销商品** 或 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-9fd92d4378edf839f6a1f6fc0beaa1660b3892b5%2F69842c54f03332c1e2eed608d72b25ad10248384a914164a7255a1e94dc76ee2.svg?alt=media) **\[复选框] 允许媒体合作伙伴为此促销请求其专属优惠码**.

</details>

<details>

<summary>高级设置</summary>

1. 从 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]**，选择在哪个 **语言** 您想要投放此素材。
2. 要限制合作伙伴仅对该素材使用 iFrame 跟踪代码（并禁止 HTML 跟踪代码），请选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-9fd92d4378edf839f6a1f6fc0beaa1660b3892b5%2F69842c54f03332c1e2eed608d72b25ad10248384a914164a7255a1e94dc76ee2.svg?alt=media) **\[复选框]** **将合作伙伴限制为此素材的 iFrame 跟踪代码**.
3. 要为素材设置第三方像素， ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[打开切换] 第三方展示像素**.
   * 这使您可以将展示数据发送到外部分析系统。
   * 请参阅下面的 *动态令牌* 参考信息，了解每个令牌可插入的内容类型。

</details>

4. 选择 **保存** 或 **保存草稿** ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media) **\[下拉菜单]** 并从以下选项中选择：

{% tabs %}
{% tab title="保存" %}

* **保存** - 保存素材并激活。
* **保存并创建另一个** - 保存素材并打开新表单以创建另一个。
* **保存并使用相同设置创建另一个** - 保存素材并以相同设置预填，开始新素材。
  {% endtab %}

{% tab title="保存草稿" %}

* **保存草稿** - 保存您的进度，但不激活素材。
* **保存并创建另一个** - 保存草稿并打开新的草稿表单。
* **保存并使用相同设置创建另一个** - 保存草稿并以相同设置预填，开始新的草稿。
  {% endtab %}
  {% endtabs %}

**动态内容广告示例**

在 *示例代码* 如下所示，我们有：

* 一个包含文本框输入和“提交”按钮的 HTML 表单
* 嵌入式 CSS，可使表单样式独立于其他内容
* 一个 `<div>` 用于该组件的容器
* 动态创建 impact.com 跟踪链接并追加查询字符串参数的 JavaScript 函数
* 一个 `<noscript>` 当脚本没有外部链接时，供系统接受脚本的标签（没有此标签，在尝试上传此创意时会出现错误。）

  实际上，这些元素中的许多都可以托管或嵌入到您的网站上——impact.com 支持用于动态内容的外部 HTML、CSS 和 JavaScript 文件。

```html
<style type="text/css">  
#search-widget-container 
{    font-family:"Verdana";
     padding:20px;     
     width:280px;    
     height:75px;
     margin:30px;
     background:#FFFFFF;
     border:1px solid #BBBDBF;
     border-radius:6px;
     box-shadow:5px 5px 2px rgba(0,0,0,0.1);   }   
     #submitbutton 
     {background:#fff;
     color:#3B91CF;
     font-weight:bold;
     font-size:12px;
     padding:5px:
     border-radius:6px;
     border:1px solid #3B91CF;
     cursor:pointer;   }   
    #submitbutton:hover {    
     background:#3B91CF;
     color:#fff;  }
     #searchbox {
      width:200px;
      margin:10px 10px 10px 0px;   }
</style>
<div id='search-widget-container'>
<img src="http://www.impactradius.com/wp-content/uploads/2014/05/impact-radius-logo.png" width="150px">  
<form><input name='searchTerm' 
   id='searchBox'
   type='text' 
   placeholder='搜索网站'>
    <input onClick="searchFunction()" 
     type='submit' 
     value='提交'
     id='submitbutton'>
 </form>
</div>
<script type="text/javascript">
function searchFunction() {  
// 从搜索框获取用户提交的值 
var searchTerm = document.getElementById("searchBox").value;  
var landingPage = "http://{domain}/c/{irpid}/{iradid}/{ircid}?p.searchTerm=";
// 将 searchTerm 附加到 landingPage 末尾
var completeURL = landingPage.concat(searchTerm);
// 将客户发送到完整的最终 URL
window.location.href = completeURL;   } 
</script>
<noscript>
<a href=”http://www.example.com”>无脚本链接</a>
</noscript>
```

* 该 JavaScript 代码使用动态令牌生成跟踪 URL，并将搜索词作为查询字符串参数追加。
* 由于内容没有绝对 URL，我们使用 `{domain}`, `{irpid}`, `{iradid}`，以及 `{ircid}` 作为动态令牌来生成跟踪链接，该链接会填充项目的跟踪域名、合作伙伴 ID、广告 ID 和项目 ID 值。
* 一旦点击，客户将通过 impact.com 路由，然后转发到落地页——在本例中， `https://www.example.com`

<details>

<summary>动态令牌参考</summary>

| 令牌                      | 支持于         | 描述                              |
| ----------------------- | ----------- | ------------------------------- |
| `{irpid}`               | 素材内容 / 展示像素 | 填充合作伙伴的 impact.com 合作伙伴 ID。     |
| `{iradid}`              | 素材内容 / 展示像素 | 填充分配给该广告的广告 ID。                 |
| `{ircid}`               | 素材内容 / 展示像素 | 填充分配给您项目的 impact.com 项目（或活动）ID。 |
| `{subId1}` - `{subId3}` | 素材内容        | 填充合作伙伴的 SubId 值（用于跟踪和报告）。       |
| `{sharedId}`            | 素材内容        | 填充合作伙伴的 SharedId 值用于报告。         |
| `{domain}`              | 素材内容 / 展示像素 | 填充您项目的跟踪域名。                     |
| `{timestamp}`           | 素材内容        | 在检索广告时填充时间戳（Unix epoch 格式）。     |
| `{randint}`             | 素材内容 / 展示像素 | 在检索广告时填充随机生成的整数。                |

</details>

#### 排查验证错误

在创建内容广告时，您可能会看到以下错误消息。您可以这样解决它们：

| 验证错误                  | 说明                                                                                                      |
| --------------------- | ------------------------------------------------------------------------------------------------------- |
| *“没有可替换链接”*           | impact.com 无法检测到以下内容中的可替换链接： *内容* 字段。链接必须包含协议。任何使用 `http` 将自动转换为 `https`.                               |
| *“广告名称不能为空”*          | 您必须在以下位置为内容广告提供名称： *名称* 字段中。                                                                            |
| *“锚点上的 URL 不是绝对 URL”* | 在以下内容中至少有 1 个链接： *内容* 它不是绝对链接。绝对链接使用以以下内容开头的完整路径： `http:// 或 https://`。检查语法问题，例如在以下内容之前或之后的空格： `href=`. |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/ads/create-ads/create-an-article-asset.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
