Skip to content

Instantly share code, notes, and snippets.

@yllus
Created June 25, 2019 17:09
Show Gist options
  • Select an option

  • Save yllus/69a833e54f7ec2bb90d18fbb91533eb8 to your computer and use it in GitHub Desktop.

Select an option

Save yllus/69a833e54f7ec2bb90d18fbb91533eb8 to your computer and use it in GitHub Desktop.

Revisions

  1. yllus created this gist Jun 25, 2019.
    19 changes: 19 additions & 0 deletions ticats_bigbox.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <!-- 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. -->