VASTGet VAST

Get VAST

Request VAST ad markup for a single ad break.

curl -X GET "https://avails.5centscdn.com/v1/vast?publisher_id=8f2a1c3e-4b5d-4a6e-9f1a-2b3c4d5e6f7a&content_id=1024&placement=preroll&tags=sports%2Clive&category=3&device=3&device_ua=example_string&language=en&user_key=example_string&device_ip=203.0.113.10&continent_geoname_id=6255149&country_geoname_id=6252001&subdivision_1_geoname_id=5332921&subdivision_2_geoname_id=5391959&city_geoname_id=5391811&country=US&region=NY&city=New%20York&max_duration=30&min_ad_length=5&max_ad_length=30&max_ads=4&fill_ceiling_seconds=35&break_position=1&break_id=break-1&transaction_id=8f2a1c3e-4b5d-4a6e-9f1a-2b3c4d5e6f7a&skipoffset=5&skip_policy=example_string" \
  -H "Content-Type: application/json"
{}
GET
/v1/vast
GET
Base URLstring

Target server for requests. Edit to use your own host.

query
publisher_idstring
Required

Ad Manager project UUID. Scopes the request to a project. Missing or invalid value returns 400.

Format: uuid
query
content_idstring

Content the break is attached to, matched against campaign content targeting allowlists.

query
placementstring

Ad placement identifier.

Options: preroll, midroll, postroll
query
tagsstring

Comma-separated content tags, matched against campaign content-tag targeting.

query
categoryinteger

IAB content-category ID, matched against campaign category targeting. Invalid value is ignored with a warning.

query
deviceinteger

IAB device-type ID (1-8), matched against campaign device targeting. Out-of-range value is ignored with a warning.

Min: 1 • Max: 8
query
device_uastring

User-Agent override, for SSAI proxies masking the player's real UA. Falls back to the request's User-Agent header.

query
languagestring

Content/ad language targeting.

query
user_keystring

Frequency-capping / user correlation key.

query
device_ipstring

Client IP override, used for GeoIP resolution and outbound forwarding. Falls back to X-Forwarded-For, then the connection's remote address.

query
continent_geoname_idinteger

Explicit geo-targeting override.

query
country_geoname_idinteger

Explicit geo-targeting override.

query
subdivision_1_geoname_idinteger

Explicit geo-targeting override.

query
subdivision_2_geoname_idinteger

Explicit geo-targeting override.

query
city_geoname_idinteger

Explicit geo-targeting override.

query
countrystring

Text geo-targeting fallback, used when the geoname-id overrides are not supplied.

query
regionstring

Text geo-targeting fallback.

query
citystring

Text geo-targeting fallback.

query
max_durationinteger

Break fill target, seconds (IAB BREAKMAXDURATION). 0 if absent or invalid, no warning.

query
min_ad_lengthinteger

Per-ad minimum duration, seconds (IAB BREAKMINADLENGTH). 0 if absent or invalid, no warning.

query
max_ad_lengthinteger

Per-ad maximum duration, seconds (IAB BREAKMAXADLENGTH). 0 if absent or invalid, no warning.

query
max_adsinteger

Pod-size cap override (IAB BREAKMAXADS). 0 (service default) if absent or invalid, no warning.

query
fill_ceiling_secondsinteger

Hard overshoot ceiling, distinct from the fill target. 0 (= max_duration) if absent or invalid, no warning.

query
break_positioninteger

IAB BREAKPOSITION - 1=pre-roll, 2=mid-roll, 3=post-roll, 4=standalone. Invalid value ignored with a warning.

Options: 1, 2, 3, 4
query
break_idstring

Correlates the response to a VMAP ad break.

query
transaction_idstring

IAB TRANSACTIONID correlator. Left blank if absent (not auto-generated for VAST).

query
skipoffsetstring

Uniform ad-skip override, written to VAST's <Linear skipoffset>. Accepts false (not skippable), N%, or a number of seconds (including 0, meaning skippable immediately - not the same as false). A malformed value is dropped with a warning.

query
skip_policystring

Full rule-based ad-skip override, URL-encoded JSON matching the SkipPolicy shape from the Ad Manager management API. Highest precedence, above skipoffset and the project's saved default. Malformed/invalid JSON is dropped with a warning and falls back to skipoffset/the saved default.

Request Preview
Response

Response will appear here after sending the request

Query Parameters

publisher_idstring
Required

Ad Manager project UUID. Scopes the request to a project. Missing or invalid value returns 400.

Example:
8f2a1c3e-4b5d-4a6e-9f1a-2b3c4d5e6f7a
content_idstring

Content the break is attached to, matched against campaign content targeting allowlists.

Example:
1024
placementstring

Ad placement identifier.

Allowed values:prerollmidrollpostroll
tagsstring

Comma-separated content tags, matched against campaign content-tag targeting.

Example:
sports,live
categoryinteger

IAB content-category ID, matched against campaign category targeting. Invalid value is ignored with a warning.

Example:
3
deviceinteger

IAB device-type ID (1-8), matched against campaign device targeting. Out-of-range value is ignored with a warning.

Example:
3
device_uastring

User-Agent override, for SSAI proxies masking the player's real UA. Falls back to the request's User-Agent header.

languagestring

Content/ad language targeting.

Example:
en
user_keystring

Frequency-capping / user correlation key.

device_ipstring

Client IP override, used for GeoIP resolution and outbound forwarding. Falls back to X-Forwarded-For, then the connection's remote address.

Example:
203.0.113.10
continent_geoname_idinteger

Explicit geo-targeting override.

Example:
6255149
country_geoname_idinteger

Explicit geo-targeting override.

Example:
6252001
subdivision_1_geoname_idinteger

Explicit geo-targeting override.

Example:
5332921
subdivision_2_geoname_idinteger

Explicit geo-targeting override.

Example:
5391959
city_geoname_idinteger

Explicit geo-targeting override.

Example:
5391811
countrystring

Text geo-targeting fallback, used when the geoname-id overrides are not supplied.

Example:
US
regionstring

Text geo-targeting fallback.

Example:
NY
citystring

Text geo-targeting fallback.

Example:
New York
max_durationinteger

Break fill target, seconds (IAB BREAKMAXDURATION). 0 if absent or invalid, no warning.

Example:
30
min_ad_lengthinteger

Per-ad minimum duration, seconds (IAB BREAKMINADLENGTH). 0 if absent or invalid, no warning.

Example:
5
max_ad_lengthinteger

Per-ad maximum duration, seconds (IAB BREAKMAXADLENGTH). 0 if absent or invalid, no warning.

Example:
30
max_adsinteger

Pod-size cap override (IAB BREAKMAXADS). 0 (service default) if absent or invalid, no warning.

Example:
4
fill_ceiling_secondsinteger

Hard overshoot ceiling, distinct from the fill target. 0 (= max_duration) if absent or invalid, no warning.

Example:
35
break_positioninteger

IAB BREAKPOSITION - 1=pre-roll, 2=mid-roll, 3=post-roll, 4=standalone. Invalid value ignored with a warning.

Allowed values:1234
break_idstring

Correlates the response to a VMAP ad break.

Example:
break-1
transaction_idstring

IAB TRANSACTIONID correlator. Left blank if absent (not auto-generated for VAST).

Example:
8f2a1c3e-4b5d-4a6e-9f1a-2b3c4d5e6f7a
skipoffsetstring

Uniform ad-skip override, written to VAST's \<Linear skipoffset\>. Accepts false (not skippable), N%, or a number of seconds (including 0, meaning skippable immediately - not the same as false). A malformed value is dropped with a warning.

Example:
5
skip_policystring

Full rule-based ad-skip override, URL-encoded JSON matching the SkipPolicy shape from the Ad Manager management API. Highest precedence, above skipoffset and the project's saved default. Malformed/invalid JSON is dropped with a warning and falls back to skipoffset/the saved default.

Responses

VAST XML ad response for the requested break.