Skip to content

Instantly share code, notes, and snippets.

@rafaelverger
Last active May 12, 2023 00:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rafaelverger/7fe5bd8f09566bb23a695b450661141d to your computer and use it in GitHub Desktop.
Save rafaelverger/7fe5bd8f09566bb23a695b450661141d to your computer and use it in GitHub Desktop.
Integrate DFP click macro and cache buster to Space AdManager
<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