Skip to main content
How to set up In-Video (VAST) ads

Step by step manual how to import VAST ads from ad networks to AdSpyglass and place them on your website

Sevak avatar
Written by Sevak
Updated over a year ago

Here's a step by step guide and a brief overview of the best practices of setting up the VAST ad format using AdSpyglass.

1. Create 'in-video' spot

In the Website section click on [ + Add spot ] button.

In the form choose a website, enter the name for a new spot, select stream type, and Ad type: In-video (VAST Link URL). Save it!

2. Create In-video (VAST) campaign

Navigate to the My Ads section and select the My Campaigns tab, then click on [+ Add campaign] button


Make initial settings for your campaign. The stream must be the same as for the spot you have created before. Ad type: In-video (VAST Link URL).
In the Spots, drop-down list select 'Only specific spots' and find your spot. If you want to run this campaign in all suitable In-video spots, select 'Run campaign over the network'.

3. Add In-Video (VAST) creatives to the campaign

When your campaign is ready, click on [ + Import Creative ] button on the right of your campaign.

Name it and select the Ad network that you want to import creative from.

If your Ad network list is empty, Link your personal Ad network accounts first.

Some Ad Networks don't support automated import, so let me explain how to add it manually. You will need to get Zone_id and VAST Link URL. Go to the Ad Network publishers panel and copy-paste both to the form.

If you don't know how to get Zone_id and/or VAST Link URL from the Ad Network panel, please follow the manual in our knowledge base using a search in the chat widget. All creatives have a similar way to get imported, so if you don't find instructions for your case use any other manual for your ad network.

4. Set your In-Video ads live

Go back to the Website section and get your smart Overlay player code.

Copy-paste the code into your video-player setup (see installation instructions at the left from the code).

Simply adjust it from the Spot setting with no need to change code every time when needed if placing the New version of code instead of the old one.

⚠️ Make sure you have replaced the old vast code version with the new one on your website.

The list of available setting:

Frequency Capping - the time gap in which popunder will be showed. (in seconds) 1:24 (86400) means that you will show one popunder every 24hrs. Learn more

Sub frequency capping - the number of creatives that will be shown within one capping period. It's set to 1 ad launch by default. If you set it to 2-3-4..., this will mean how many ads will be shown in a row (for each page update), so that 1 click results in 1 popunder, next page update - click and ad launch as a result. If you set it to 0 - popunder will be shown constantly (taking into account the total capping).

Attach to - class or id the Vast to be attached to;

Autoplay - set autoplay after the page load;

Autoplay Delay - delay before autoplay in seconds;

Skip button text - text to display the countdown during an ad;

Close button text - text after the countdown is finished to let the user close the ad.

Disable preload ads - set to True, to disable preloading ads. This will decrease Requests but may lead to long loading ads;

Muted - start video player muted;

Verbosity - input for the console log;

Ad cancel timeout - timeout to wait for the ad to start playing

Callbacks - will be called whenever the ad run finishes. For example, player.play(); - player launch after ad is finished;

Skip Offset (sec) - indicates when the skip control should be provided after the creative begins playing (in ms). 1000 = 1 sec;

Ads series - number of creatives that will be shown continuously per one ad launch;

Enable VPAID - an interactive ad format that takes control over the ad. If enabled, Ad Network will be able to have full control over your player. However, CPM is usually higher when enabled.

Advanced settings

Test percentage - traffic percentage going to untargeted consumers;

Onloop - show suitable creatives on infinity loop;

Aggressive feeds - removing checkbox will prevent ads be shown from feeds with no limitation by aggressive ads but may result in CPM and Income decrease;

Min CPM - minimum CPP for the ad to be shown.


You can also get your smart VAST link URL:

Copy-paste it into your video player setup. If you don't know how to setup VAST ads in your player, please read your player manual or contact the player developer.


Did this answer your question?