Skip to content

Instantly share code, notes, and snippets.

@yllus
Created June 25, 2019 17:09
Show Gist options
  • Save yllus/69a833e54f7ec2bb90d18fbb91533eb8 to your computer and use it in GitHub Desktop.
Save yllus/69a833e54f7ec2bb90d18fbb91533eb8 to your computer and use it in GitHub Desktop.
<!-- START: Put this in the header of your page; if you already have another ad unit on the page this is probably a duplicate and unnecessary. -->
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<!-- END: Put this in the header of your page; if you already have another ad unit on the page this is probably a duplicate and unnecessary. -->
<!-- START: This is the actual ad unit, so place it where you want the big box ad to appear. -->
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/103711331/Ticats_BigBox', [300, 250], 'div-gpt-ad-1561482442188-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<div id='div-gpt-ad-1561482480959-0'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1561482480959-0'); });
</script>
</div>
<!-- END: This is the actual ad unit, so place it where you want the big box ad to appear. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment