One of the most common uses of Behavioral Targeting is used with online ads. Being able to segment your ads based on behavior can allow your site to create new media sells and enhance your CPM.
Contents |
OpenX is a free, open source ad server used to manage the advertising on over 100,000 websites around the world. The OpenX Ad Server is available as a hosted service or as downloaded software. Visit OpenX homepage.
To integrate BTBuckets on yout OpenX Adserver, just download the
file
Bucket_openx.zip, unzip it, upload the files to your website
(such as the /js/ directory). Then, include them in
the header HTML block after BTBuckets tag. Make sure the tags are
included before ad slot script on every page.
Below is an example of an webpage using BTBuckets and OpenX. Besides adding the javascript call of the file described above (shown below in yellow), we also added the javascript variables within the OpenX tag, shown above in red.
<html>
<head>
<script type="text/javascript">
//<![CDATA[[
$BTB={s:XXXX};
$BTB.jsh="http://static.btbuckets.com/bt.js";
//]]>
</script>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + $BTB.jsh.replace(/(http:|https:)/i,document.location.protocol) + "' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript" src="/js/bucket_adopenx.js"></script>
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://demo.openx.org/delivery/ajs.php':'http://demo.openx.org/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=26");
document.write ('&cb=' + m3_r);
//BTBuckets integration start
integrateBTBwithOpenX();
//BTBuckets integration end
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script>
<noscript><a href='http://demo.openx.org/delivery/ck.php?n=a99402c6&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://demo.openx.org/delivery/avw.php?zoneid=26&cb=INSERT_RANDOM_NUMBER_HERE&n=a99402c6' border='0' alt='' /></a>
</noscript>
...
...
...
</html>

Very easy, right? If you don't think so, please contact
us!
© 2013 Created by BTBuckets.