Technical specification for physical html5 advertising media
3rd-Party-Tracking | allowed |
Videoformats | H264/mp4 und VP8/WebM |
Video filesize | max. 5 MB |
Videostart & Audiostart | Only after explicit useraction |
Leadtime | 5 days or 10 days for mobile HTML5 formats |
General guidelines
JavaScript guidelines
Click measurement
You have the possibility to have clicks on links to external sites measured by the Ströer Digital AdServer. For this purpose, dynamic assignment of the link URLs must be enabled in the HTML5 advertising medium.
When the ad medium is played out, the complete URLs of Ströer are inserted into the ad medium and measured when the user clicks.
During development of the media ad, the link URL-encoded (encodeURIComponent() ) can be transferred to the ad media using GET parameters.
Fill all links to be measured with the name "#clicktag" as placeholder and an ID attribute of the same name. If you want to use different links with different targets, you have to number the placeholders sequentially ("#clicktag", "#clicktag2", etc.)
1
2
<a href="#clicktag" id="clicktag" target="_blank">Linktext 1</a>
<a href="#clicktag2" id="clicktag2" target="_blank">Linktext 2</a> |
Insert the following script in the <head> of your ad media:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script type="text/javascript">
var getUriParams = function ()
{
var query_string = {};
var query = window.location.search.substring(1);
var parmsArray = query.split('&');
if (parmsArray.length <= 0) return query_string;
for (var i = 0; i < parmsArray.length; i++)
{
var pair = parmsArray[i].split('=');
var val = decodeURIComponent(pair[1]);
if (val != '' && pair[0] != '') query_string[pair[0]] = val;
}
return query_string;
}();
</script> |
Either at the end of the HTML file or when initiating the ad media, the dynamic assignment of the URLs must be triggered with the following code
1
2
3
4
<script type="text/javascript">
document.getElementById('clicktag').setAttribute('href', getUriParams.clicktag);
document.getElementById('clicktag2').setAttribute('href', getUriParams.clicktag2);
</script> |
Pre-test click measurement
Guidelines for animations
Guidelines for pictures & videos
HTML5 on mobile devices