Placeholders (variables) in ad links


In tag links you can use placeholders that should be replaced at the request stage for certain data. These placeholders must be enclosed in parentheses.

(random) — random number for disabling cache

(referer) — page address where the player is running

(host) — domain where the player is running

(width) — player width

(height) — player height

(duration) — duration of the current content

(visibility) — visibility of the player

(connection) — type of Internet connection

(platform) — type of platform (web-html5, mobile or smarttv)

(adblock) — enable or disable AdBlock

(volume) — ad volume during playback

Sample

//site.com/vast.xml?rand=(random)&width=(width)&height=(height)

You can specify your custom variables using the vast_replace parameter

vast_replace:{"[var1]":"1","[var2]:"2"}
//site.com/vast.xml?v1=[var1]&v2=[var2] --> //site.com/vast.xml?v1=1&v2=2

This data can be updated on the fly via JS API

player.api("update:vast_replace",{"[var1]":"3","[var2]":"4"});



2020 © PlayerJS

Login

Restore password
Sign up
Log in

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Enterprise

Your name
Website
Email
Phone
Description
Order player

Restore password

Restore
Forgot email? Contact us