This example illustrates how an ad server configuration can be set to ensure that the impression URL is called even if the VAST response provides no ad.
The configuration for this example is:
"" is defined as:
<config>
<ova.title>
Example 5-4 - Impression serving on an empty Ad VAST response, on demand with autostart
</ova.title>
<ova.json>
{
"debug": {
"levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
},
"shows": {
"baseURL": "http://streaming.openvideoads.org/shows",
"streams": [
{ "file":"the-black-hole.mp4", "duration":"00:00:10" },
{ "file":"the-black-hole.mp4", "duration":"00:00:11" },
{ "file":"the-black-hole.mp4", "duration":"00:00:12" },
{ "file":"the-black-hole.mp4", "duration":"00:00:13" }
]
},
"ads": {
"schedule": [
{
"position": "pre-roll",
"applyToParts": [0,2],
"loadOnDemand": true,
"server": {
"type": "direct",
"forceImpressionServing": true,
"apiAddress": "../../../dist/templates/error-responses/vast1.0/empty-ad-vast-response.xml"
}
},
{
"position": "pre-roll",
"applyToParts": [1],
"loadOnDemand": true,
"server": {
"type": "direct",
"apiAddress": "../../../dist/templates/error-responses/vast1.0/empty-ad-vast-response.xml"
}
},
{
"position": "pre-roll",
"applyToParts": [3],
"loadOnDemand": true,
"server": {
"type": "direct",
"forceImpressionServing": true,
"apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&zones=pre-roll0-0%3D5&nz=1&source=&r=R0.807678107637912&block=1&format=vast&charset=UTF-8"
}
}
]
}
}
</ova.json>
</config>