The mobile web ad tag consists of 2 parts:
- Config Script - should be placed once on the mobile webpage header (between <head></head> tags)
- Ad Placement Script - should be placed on the mobile webpage body (between <body></body> tags) once for each ad placement (it’s recommended to add not more than 10 tags per webpage)
> Mobile Web Ad Tag - Config Script
<script type="text/javascript">
var dioParams = {
adsSrvDomain: 'appsrv.display.io', //mandatory
cdnDomain: 'cdn.display.io', //mandatory
fixedHeaderSelector : '', //mandatory if a webpage has a fixed header
passbackTag: '', //optional, script should be escaped
impressionCallBack: ["www.example.com", "www.example2.com"], //optional, comma separated array of impression tracking URls
headerText: 'Scroll to continue with content', //optional
headerTextColor: 'white', //optional
headerBackgroundColor: 'black', //optional
adContainerBackgroundColor: 'transparent', //optional
pageCategory: '', //optional, comma separated
keywords: '', //optional, comma separated
};
</script>
> Mobile Web Ad Tag - Ad Placement Script (Direct Integration)
<script async src="https://cdn.display.io/webis/webis.min.js#site=siteID?placement=placementID"></script>
> Mobile Web Ad Tag - Ad Placement Script (GAM Integration)
<script async src="https://cdn.display.io/webis/webis_in_sf.min.js#site=siteID?placement=placementID"></script>
Comments
0 comments
Please sign in to leave a comment.