Skip to content

Instantly share code, notes, and snippets.

@yllus
Last active May 17, 2016 21:42
Show Gist options
  • Select an option

  • Save yllus/8254975b5162031008a34ace1a9d87e6 to your computer and use it in GitHub Desktop.

Select an option

Save yllus/8254975b5162031008a34ace1a9d87e6 to your computer and use it in GitHub Desktop.
Ad spot HTML for the CFL Pick'em website.

To display any of these ad spots, you'll need to put this code in the header of your site:

<script type='text/javascript'>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
  var gads = document.createElement('script');
  gads.async = true;
  gads.type = 'text/javascript';
  var useSSL = 'https:' == document.location.protocol;
  gads.src = (useSSL ? 'https:' : 'http:') +
    '//www.googletagservices.com/tag/js/gpt.js';
  var node = document.getElementsByTagName('script')[0];
  node.parentNode.insertBefore(gads, node);
})();
</script>

Ad Slots

  1. The 728x90 desktop leaderboard (slot name of "CFL_Pickem_Leaderboard_Desktop"):

     <script type='text/javascript'>
       googletag.cmd.push(function() {
         googletag.defineSlot('/103711331/CFL_Pickem_Leaderboard_Desktop', [728, 90], 'div-gpt-ad-1463520687132-0').addService(googletag.pubads());
         googletag.pubads().enableSingleRequest();
         googletag.enableServices();
       });
     </script>
     
     <!-- /103711331/CFL_Pickem_Leaderboard_Desktop -->
     <div id='div-gpt-ad-1463520687132-0' style='height:90px; width:728px;'>
     	<script type='text/javascript'>
     	googletag.cmd.push(function() { googletag.display('div-gpt-ad-1463520687132-0'); });
     	</script>
     </div>
    
  2. The 300x50 mobile leaderboard (slot name of "CFL_Pickem_Leaderboard_Mobile"):

     <script type='text/javascript'>
       googletag.cmd.push(function() {
         googletag.defineSlot('/103711331/CFL_Pickem_Leaderboard_Mobile', [300, 50], 'div-gpt-ad-1463521260293-0').addService(googletag.pubads());
         googletag.pubads().enableSingleRequest();
         googletag.enableServices();
       });
     </script>
     
     <!-- /103711331/CFL_Pickem_Leaderboard_Mobile -->
     <div id='div-gpt-ad-1463521260293-0' style='height:50px; width:300px;'>
     	<script type='text/javascript'>
     	googletag.cmd.push(function() { googletag.display('div-gpt-ad-1463521260293-0'); });
     	</script>
     </div>
    
  3. The 300x50 big box (slot name of "CFL_Pickem_BigBox"):

     <script type='text/javascript'>
       googletag.cmd.push(function() {
         googletag.defineSlot('/103711331/CFL_Pickem_BigBox', [300, 250], 'div-gpt-ad-1463521339563-0').addService(googletag.pubads());
         googletag.pubads().enableSingleRequest();
         googletag.enableServices();
       });
     </script>
     
     <!-- /103711331/CFL_Pickem_BigBox -->
     <div id='div-gpt-ad-1463521339563-0' style='height:250px; width:300px;'>
     	<script type='text/javascript'>
     	googletag.cmd.push(function() { googletag.display('div-gpt-ad-1463521339563-0'); });
     	</script>
     </div>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment