> 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/publishers/zh/vast.md).

# VAST

VAST（Video Ad Serving Template）是由 **互动广告局（IAB）**。VAST 为广告服务器与视频播放器之间呈现视频广告所需的通信要求制定了标准，并使用 `XML`.

简而言之，VAST 使广告提供商能够通过一种所有这些播放器都能理解的通用通信方式，向各种视频播放器投放广告。

关于 VAST 背后整体理念的详细说明，以及完整的 VAST 规范，可在此处找到： [VAST 3.0](https://www.iab.com/guidelines/digital-video-ad-serving-template-vast-3-0/).

**注意：** ExoClick 提供的默认标准是 `v3`，但 VAST Wrapper 可能会根据广告主偏好使用其他 VAST 版本。

## VAST 的工作原理

常规的 VAST 通信流程如下：

1. **VAST 请求：** 视频播放器向广告服务器发起调用，请求 VAST 响应。
2. **VAST 内联响应：** 广告服务器返回一个 VAST 内联响应，其中包含显示和跟踪广告所需的所有媒体文件和跟踪 URI。
3. **跟踪 URI 被访问：** 当广告中发生关联事件时，视频播放器会从提供的跟踪 URI 请求跟踪资源。

## 事件与统计

当前，系统在处理 VAST 广告时会跟踪三个事件：

* **视频展示：** 该事件的确切触发时间取决于视频播放器，但最常见的是在网站访客按下播放器播放按钮时触发。。
* **视频观看：** 该事件发生在以正常速度观看 10 秒视频广告播放后。当该事件发生时，视频播放器会通知广告提供商，并注册一次观看。此事件对于确定 CPV 活动的成本很重要。
* **点击：** 当点击视频广告时会发生此事件。视频播放器会通知广告提供商，并注册一次标准点击事件。

## VAST 示例结构

ExoClick 使用 VAST 来处理 **流内**, **Outstream**, **Slider** 和 **In-Video** 广告。在本节中，你将看到我们广告返回的 XML 示例，以及这些 XML 中各元素的详细说明：

* [内联 VAST](/publishers/zh/vast/vast-biao-qian.md)
* [Wrapper VAST](/publishers/zh/vast/vast-wrapper.md)

请注意，只有在接收 VAST 标签广告位时才需要处理 VAST 事件，这对应于 **流内** 或 **In-Video**。关于如何在您的网站上添加 In-Stream 或 In-Video 广告位的简要说明，请查看我们的教程：

**In-Stream：**

* [In-Stream：如何实现 In-Stream 第 1 部分 - 设置广告位](/tutorials/tutorials/publishers-tutorials/how-implement-in-stream-part1.md)
* [In-Stream：如何实现 In-Stream 第 2 部分 - 实现示例](/tutorials/tutorials/publishers-tutorials/how-implement-in-stream-part2.md)
* [In-Stream：如何实现 In-Stream 第 3 部分 - 测试广告位](/tutorials/tutorials/publishers-tutorials/how-implement-in-stream-part3.md)

**In-Video：**

* [In-Video：如何实现 In-Video](/tutorials/tutorials/publishers-tutorials/how-implement-in-video-vast.md)

## VAST 错误

如果您的视频播放器在解释 VAST 响应时遇到问题，您可以查看我们的 [**错误列表**](/publishers/zh/vast/vast-cuo-wu.md) 以帮助您调试问题。


---

# 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://docs.exoclick.com/publishers/zh/vast.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.
