> For the complete documentation index, see [llms.txt](https://wpcloudplugins.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wpcloudplugins.gitbook.io/docs/features/video-advertisements.md).

# Video Advertisements

Monetize your videos with advertisements from your own ad server. The media player supports VAST 2, 3 and 4 and VMAP, and can show advertisements before, during and after a video.

{% hint style="info" %}
Advertisements during and after the video, VMAP schedules and consent support only work in the **Default Skin** of the media player. The older skins (Legacy MediaElement and Basic Playlist 2020) only show one advertisement before the video.
{% endhint %}

#### Setting up

1. Get a **VAST tag url** from your ad server, for example Google Ad Manager or your advertising network. See the [Google Ads Help Center](https://support.google.com/google-ads/answer/6340491) for more information.
2. Go to the plugin settings → **Layout** → **Video Advertisements** and enter the url in **VAST XML Tag Url**. Use the url exactly as your ad server gives it.
3. Open your video module in the Module Builder and turn on **Enable Video Advertisements**.

Every setting can also be set per module. Leave a module setting as it is to use the plugin settings.

{% hint style="warning" %}
Google IMA is not used. Ad Manager tags work as normal VAST tags, but advertisements that Google only offers through IMA won't show.
{% endhint %}

#### Advertisements during and after the video

* **Advertisement during the video every (minutes):** shows an advertisement each time this number of minutes has passed. Only in videos that are long enough, and never in the last minute. `0` turns this off.
* **Advertisement after the video:** shows an advertisement when the video ends. In a playlist that plays on by itself, only after the last video.

If your ad server sends a **VMAP** schedule, the player follows that schedule instead of these two settings.

#### Skip button

* If the advertisement itself says when it can be skipped, the player follows that.
* Otherwise **Enable Skip Button** and **Skip button visible after (seconds)** decide. `0` shows the skip button right away.

#### Privacy and consent

The player follows the cookie banner of your site. It works with consent tools that use the IAB TCF or the WP Consent API, such as Complianz, CookieYes, Cookiebot and OneTrust. The choice of the visitor is also passed on to the ad server.

* **Follow the consent tool of the site** (on by default): no advertisement when the visitor didn't allow advertising cookies, or hasn't answered the banner yet. The video plays without one.
* **Without a consent tool:** choose what happens on a site without a cookie banner: request advertisements (default), request only non-personalized advertisements, or show no advertisements.

{% hint style="warning" %}
Do you have visitors from the EU or UK? Then you need a consent tool to show advertisements.
{% endhint %}

#### Who sees advertisements

* Users with a role in **Exclude users** never see advertisements.
* Audio modules never show advertisements.

#### No advertisement shows?

The video always plays, also without an advertisement. Common reasons:

* The ad server has no advertisement for this visitor.
* The visitor didn't give consent, or uses an ad blocker.
* The ad server didn't answer within 5 seconds.

To see the reason, add `?wpcp_ads_debug=1` to the page url and open the browser console.
