> For the complete documentation index, see [llms.txt](https://docs.exoclick.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exoclick.com/tutorials/zh/jiao-cheng/mei-ti-zhu-jiao-cheng/how-implement-in-stream-part1.md).

# 流内：如何实现流内广告，第 1 部分。

插播广告位可让您在您网站的视频播放期间提供高质量的视频广告。插播广告是一行简单的代码，可在任何兼容 VAST 的播放器中运行。我们制作了一份分为 3 个部分的指南，向您展示如何在网站中添加此广告格式，以及如何利用您的流量充分发挥其作用。

## 创建插播广告位

首先前往 **网站和广告位** 选项卡并点击 **新建广告位**.

下拉菜单会列出您的所有网站，请选择您要放置插播广告位的网站。

<figure><img src="https://53980720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ4RqRdVZkeXomdmwHKOL%2Fuploads%2FUOdS5VZ6NilzpjpEXzZv%2FHKPaZXobkr5maLc9sZAuUDBnecpvTCM7.png?alt=media&amp;token=904dd587-952f-4309-ad9b-fd121e0c8f92" alt=""><figcaption></figcaption></figure>

点击 **视频** 下拉菜单并选择 **插播** 然后点击 **下一步**.

然后，填写所有插播广告位设置。

<figure><img src="https://53980720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ4RqRdVZkeXomdmwHKOL%2Fuploads%2FgXeb8ed9ALpx9tnzbNMB%2FQG1n1lX8WaE0HLxImwfNVZ33OtysCsIC.png?alt=media&amp;token=69b9339c-5ce0-4863-b248-ca1f9db8bbb6" alt=""><figcaption></figcaption></figure>

* **名称：** 根据您的需求自定义广告位名称 **（至少 5 个字符）**.
* **类别（默认）：** 系统会根据您在上一步选择的网站类别自动选择此项。
* **子类别（可选）：** 我们建议，除非您希望在同性恋网站上投放插播视频，否则不要选择子类别，以最大限度地提高您的收益潜力。
* **频率：** 我们建议您将其设置为“**每小时**”，因为这通常能带来良好的效果。我们建议最多不要高于 **每 15 分钟**，具体取决于访问时长和每次访问的视频观看次数。
* **“跳过”按钮：** 行业标准设置为 **5 秒**。我们强烈建议您不要禁用跳过选项，因为这可能导致广告主将您的广告位列入黑名单，并且负面的观看体验会干扰您的流量。
* **VAST Wrapper 支持：** 默认情况下，VAST Wrapper 支持框处于勾选状态。如果您的视频播放器不支持第三方 VAST 标签（VAST Wrapper），请禁用此选项。
* **备用 URL：** 此功能允许您设置广告主为定位您的广告位所需出价的最低底价。启用备用 URL 后，您必须选择一种底价类型： **软底价** 和 **硬底价**。软底价意味着我们会尝试适应您的底价出价，但不一定会遵守，因为我们将允许 CPC 广告活动投放。硬底价保证您的底价会被遵守，因为只有 CPM 广告活动能够投放。

启用备用 URL 后，您还需要指定 **替代 URL** ，当没有广告主能够满足此出价时将显示该 URL。

{% hint style="warning" %}
**注意：** 如果这是您首次使用 **插播** ，我们强烈建议您先让插播广告位运行几天，在更好地了解通过我们可达到的 eCPM 之前，不要启用备用 URL。否则，广告位可能无法获得任何广告。
{% endhint %}

您还可以设置 **筛选器** ，以防您想阻止某些产品或视频文件在您的网站上推广。您可以在 [**此处**](/tutorials/zh/jiao-cheng/mei-ti-zhu-jiao-cheng/dynamically-block-ad-types-for-exoclick-in-stream-zones.md)了解有关筛选器的更多信息。在本教程中，我们将跳过这些筛选器，重点讲解集成。

完成这些步骤后，点击 **保存并预览**.

## 选择您的视频播放器

创建广告位后，您将看到需要在网站所使用的视频播放器中使用的 VAST 标签 URL。

{% hint style="info" %}
**注意** 如果您不知道该使用哪种播放器，我们强烈建议您使用 [**Fluid Player**](https://www.fluidplayer.com/) ，因为它与我们的广告代码 100% 兼容。
{% endhint %}

<figure><img src="https://53980720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ4RqRdVZkeXomdmwHKOL%2Fuploads%2FrDTtn7E5Hn79E084EhLx%2Fin-stream_vast.png?alt=media&amp;token=d4021cb0-4abe-4d5d-8067-2cdfd37ae964" alt=""><figcaption></figcaption></figure>

或者，针对兼容播放器还有一些特定的集成方式，将在本指南的下一部分中介绍。 [**点击此处继续**](/tutorials/zh/jiao-cheng/mei-ti-zhu-jiao-cheng/how-implement-in-stream-part2.md)

## 补充信息：VAST XML 的结构

该 **VAST XML** 是插播广告的“骨架”。它包含一组指令，使视频播放器知道要显示哪些广告、如何显示以及如何跟踪其效果。

在我们的 [文档中的 VAST 部分](/tutorials/zh/jiao-cheng/mei-ti-zhu-jiao-cheng/how-implement-in-stream-part1.md)中，您可以找到广告位返回的 VAST XML 的详细示例。作为发布商，除了以下情况外，您无需担心 VAST XML 中返回的内容：

* 我们的大多数 VAST 广告采用 VAST 3.0。不过，某些广告活动可能会以较新版本的 VAST（4.x）投放。请确保您的视频播放器兼容 VAST 3 及更高版本的广告。
* **当 VAST XML 返回 Wrapper 元素而非 Inline 元素时**。Wrapper 元素会重定向到位于第三方服务器上的广告。VAST Wrapper 广告将在一篇 [单独的文章](/tutorials/zh/jiao-cheng/mei-ti-zhu-jiao-cheng/compatible-vast-wrapper-players.md).
* **中介绍。当 VAST XML 返回为空时**，将没有可展示的广告。此情形将在 [本指南的第 3 步](/tutorials/zh/jiao-cheng/mei-ti-zhu-jiao-cheng/how-implement-in-stream-part3.md).

## 中介绍。了解 VAST 版本

* VAST 3.0：广泛采用的版本，支持视频广告、点击跳转 URL 和跟踪事件等核心视频广告功能。它与大多数视频播放器兼容，也是许多广告主的默认版本。
* VAST 4.3：较新的版本，包含额外的改进，例如改进的跟踪与错误处理，以及对现代视频播放器更好的兼容性。如果您的播放器支持 VAST 4.x，您可能会看到以 VAST 4.3 格式投放的广告。


---

# 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://docs.exoclick.com/tutorials/zh/jiao-cheng/mei-ti-zhu-jiao-cheng/how-implement-in-stream-part1.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.
