This example illustrates pre and post roll ads delivered from an AdTech Ad Server along with an overlay ad and companions for both ad types. The configuration demonstrates how to define the AdTech Ad Server VAST request using custom properties and how those properties may be declared at the "general" or "ad slot" specific levels.
The resulting stream configuration is as follows:
The configuration for this example is:
flowplayer("a.player614x345", "", {
plugins: {
rtmp: {
url: ""
},
rtmpInstream: {
url: ""
},
ova: {
url: "",
"shows": {
"baseURL": "",
"streams": [
{
"file":"",
"duration":"00:00:20"
}
]
},
"ads": {
"companions": {
"restore": false,
"regions": [
{ "id":"companion-160x600", "width":"160", "height":"600", "resourceType": "html" },
{ "id":"companion-300x250", "width":"300", "height":"250", "resourceType": "html" }
]
},
"servers": [
{
"type": "AdTech",
"apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/990.1",
"requestTemplate": "__api-address__/__zone__/__nondynamic__;
alias=__alias____aliaspostfix__;key=__key__;
__key-value__;__cookie-name__=__cookie-value__;
grp=__group__;misc=__random-number__",
"oneAdPerRequest": true,
"customProperties": {
// override the server custom properties here
}
}
],
"schedule": [
{
"zone": "2366662/0/1725", // placement/page-id/size-id
"position": "pre-roll"
},
{
"zone": "2366662/0/1725",
"position": "post-roll"
"server": {
"customProperties": {
"nondynamic": "noperf=1;cc=2;header=yes;cookie=yes;adct=204",
"alias": "",
"aliaspostfix": "",
"key": "key1+key2",
"key-value": "",
"cookie-name": "",
"cookie-value": "",
"group": "[group]"
}
}
}
]
},
"debug": {
"levels": ""
}
}
}
});