Last active
December 18, 2015 22:29
-
-
Save Lavos/5855260 to your computer and use it in GitHub Desktop.
Clarity example of dynamic ad insertion
This file contains 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
<script type="text/javascript"> | |
CLARITY.push({ | |
use: ['jquery', 'ads'], | |
run: function($, Ads){ | |
Ads.site_code = 'buz.pitnb'; | |
Ads.zone = 'homepage'; | |
Ads.keywords = []; | |
$('body').click(function(){ | |
var div = document.createElement('div'); | |
document.body.appendChild(div); | |
Ads.createAd({ | |
sizes: [300, 250], | |
position: '300a', | |
element: div | |
}); | |
}); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment