Skip to content

Instantly share code, notes, and snippets.

@yllus
Last active June 19, 2019 23:30
Show Gist options
  • Save yllus/2738b98cbd4e530db29f0662416faade to your computer and use it in GitHub Desktop.
Save yllus/2738b98cbd4e530db29f0662416faade 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='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</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 leaderboard to appear. -->
<script>
googletag.cmd.push(function() {
googletag.defineSlot('/103711331/Ticats_Leaderboard_Desktop_and_Mobile', [[300, 50], [728, 90], [320, 50], [970, 90]], 'div-gpt-ad-1560986986334-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<div id='div-gpt-ad-1560986986334-0'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1560986986334-0'); });
</script>
</div>
<!-- END: This is the actual ad unit, so place it where you want the leaderboard to appear. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment