> 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 Wrappers 可能会根据广告商的偏好使用其他 VAST 版本。

## VAST 的工作原理

常规的 VAST 通信流程如下：

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

## 事件和统计数据

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

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

{% hint style="info" %}
注意：对于竖屏视频，观看事件会在 3 秒时触发，而不是 10 秒。
{% endhint %}

* **点击：** 当点击视频广告时会发生该事件。视频播放器会通知广告提供商，并记录一次标准点击事件。

## VAST 示例结构

ExoClick 使用 VAST 来处理 **In-Stream**, **Outstream**, **Slider** 和 **In-Video** 广告。在本节中，您将找到由我们的广告返回的 XML 的可视化示例，以及这些 XML 中每个元素的详细说明：

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

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

**In-Stream：**

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

**In-Video：**

* [In-Video：如何实现 In-Video](/tutorials/zh/jiao-cheng/fa-bu-shang-jiao-cheng/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.
