Created
December 15, 2016 22:14
-
-
Save micha/e1f1c277110e27c97f4e62339a1322a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
/* Load adOS.js */ | |
(function() { | |
var d = document; | |
var protocol = d.location.protocol == "https:" ? "https" : "http"; | |
var z = d.createElement("script"); | |
z.type = "text/javascript"; | |
z.src = protocol + "://static.adzerk.net/ados.js"; | |
z.async = true; | |
var s = d.getElementsByTagName("script")[0]; | |
s.parentNode.insertBefore(z,s); | |
})(); | |
</script> | |
<script> | |
// Load the Prebid Javascript Library Async. We recommend loading it immediately after | |
// the initAdserver() and setTimeout functions. | |
(function () { | |
var d = document; | |
var pbs = d.createElement("script"); | |
pbs.type = "text/javascript"; | |
pbs.src = 'http://headertag.com/prebid/prebid-0.8-beta.js'; | |
var target = d.getElementsByTagName("head")[0]; | |
target.insertBefore(pbs, target.firstChild); | |
})(); | |
</script> | |
<script src="adospb.js"></script> | |
<script> | |
adospb({ | |
timeout: 300, | |
beforeRequestBids: function() { console.log("before requestBids()") }, | |
placements: { | |
azk8677: { | |
siteId: 682165, | |
networkId: 23, | |
adTypes: { | |
5: [300, 250] | |
}, | |
bids: { | |
indexExchange: { | |
flightId: 2622687, | |
params: { | |
id: '1', | |
siteID: 999990, | |
} | |
}, | |
aol: { | |
flightId: 2622687, | |
params: { | |
placement: '3675026', | |
network: '9599.1', | |
} | |
} | |
} | |
}, | |
azk8678: { | |
siteId: 682165, | |
networkId: 23, | |
adTypes: { | |
5: [300, 250] | |
}, | |
bids: { | |
indexExchange: { | |
flightId: 2622687, | |
params: { | |
id: '1', | |
siteID: 999990, | |
} | |
}, | |
aol: { | |
flightId: 2622687, | |
params: { | |
placement: '3675026', | |
network: '9599.1', | |
} | |
} | |
} | |
} | |
} | |
}); | |
</script> | |
</head> | |
<body> | |
<h2>Prebid + Adzerk Test</h2> | |
<div id="azk8677"></div> | |
<div id="azk8678"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment