Skip to content

Instantly share code, notes, and snippets.

@yllus
Last active December 9, 2015 17:13
Show Gist options
  • Select an option

  • Save yllus/56db442191d242179bc6 to your computer and use it in GitHub Desktop.

Select an option

Save yllus/56db442191d242179bc6 to your computer and use it in GitHub Desktop.

Hamilton Tiger-Cats Ad Units

300x250 "Big Box" Ad Unit

We've created an ad unit called "Ticats_BigBox" for use:

<script type='text/javascript'>
  googletag.cmd.push(function() {
    googletag.defineSlot('/103711331/Ticats_BigBox', [300, 250], 'div-gpt-ad-1449680940264-0').addService(googletag.pubads());
    googletag.pubads().enableSingleRequest();
    googletag.enableServices();
  });
</script>

<!-- /103711331/Ticats_BigBox -->
<div id='div-gpt-ad-1449680940264-0' style='height:250px; width:300px;'>
	<script type='text/javascript'>
		googletag.cmd.push(function() { googletag.display('div-gpt-ad-1449680940264-0'); });
	</script>
</div>

300x250 "Priority Big Box" Ad Unit

A second 'priority' Big Box ad unit called "Ticats_Priority_BigBox" has been created as well:

<script type='text/javascript'>
  googletag.cmd.push(function() {
    googletag.defineSlot('/103711331/Ticats_Priority_BigBox', [300, 250], 'div-gpt-ad-1449681110122-0').addService(googletag.pubads());
    googletag.pubads().enableSingleRequest();
    googletag.enableServices();
  });
</script>

<!-- /103711331/Ticats_Priority_BigBox -->
<div id='div-gpt-ad-1449681110122-0' style='height:250px; width:300px;'>
	<script type='text/javascript'>
		googletag.cmd.push(function() { googletag.display('div-gpt-ad-1449681110122-0'); });
	</script>
</div>

1280x720 Video Ad Unit

To use this ad unit, the VAST2 URL is:

https://pubads.g.doubleclick.net/gampad/ads?sz=1280x720&iu=/103711331/Ticats_Video&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment