Last active
May 12, 2023 00:52
-
-
Save rafaelverger/7fe5bd8f09566bb23a695b450661141d to your computer and use it in GitHub Desktop.
Integrate DFP click macro and cache buster to Space AdManager
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
<script type="text/javascript"> | |
var space = window.space || { runs: [] }; | |
var ADID = 'YOUR_AD_ID'; var WIDTH = 1; var HEIGHT = 1; | |
space.runs.push(function () { | |
space | |
.ad(ADID) | |
.setSize(WIDTH, HEIGHT) | |
.setMacro('%%CLICK_URL_UNESC%%') | |
.setCacheBuster('%%CACHEBUSTER%%') | |
.fire(); | |
}); | |
</script> | |
<script src="https://cdn.00px.net/static/space.min.js" type="text/javascript"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment