Support » Fixing WordPress » Advertisement Codes

  • CChisam

    (@cchisam)



    [ mod note – please use the code button in future ]
    Hey guys I am trying to add my advertisement codes onto my new wordpress site using the sportszoom theme and I can’t seem to figure out how to get them to show on the site. Here are the codes that I was sent by the company advertising on our site. Can anyone help? Thanks!

    SMG_ProFootballRosters

    Header Tag

    <script type='text/javascript'>
    (function() {
    var useSSL = 'https:' == document.location.protocol;
    var src = (useSSL ? 'https:' : 'http:') +
    '//www.googletagservices.com/tag/js/gpt.js';
    document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
    })();
    </script>
    <script type='text/javascript'>
    googletag.pubads().enableSyncRendering();
    </script>
    
    Ad Tags
    
    <!-- SMG_ProFootballRosters/728x90_1a/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_728x90_1a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/728x90_1a/sports/football/nfl.main', [728,90], 'usmg_ad_nfl.main_football_sports_728x90_1a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.main_football_sports_728x90_1a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/728x90_2a/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_728x90_2a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/728x90_2a/sports/football/nfl.main', [728,90], 'usmg_ad_nfl.main_football_sports_728x90_2a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.main_football_sports_728x90_2a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/300x250_1a/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_300x250_1a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/300x250_1a/sports/football/nfl.main', [[300,250],[300,600]], 'usmg_ad_nfl.main_football_sports_300x250_1a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.main_football_sports_300x250_1a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/300x250_2a/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_300x250_2a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/300x250_2a/sports/football/nfl.main', [[300,250],[300,600]], 'usmg_ad_nfl.main_football_sports_300x250_2a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.main_football_sports_300x250_2a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/160x600_1a/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_160x600_1a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/160x600_1a/sports/football/nfl.main', [160,600], 'usmg_ad_nfl.main_football_sports_160x600_1a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.main_football_sports_160x600_1a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/skin/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_skin">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/skin/sports/football/nfl.main', [1,1], 'usmg_ad_nfl.main_football_sports_skin').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.main_football_sports_skin');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/launchpad/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_launchpad">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/launchpad/sports/football/nfl.main', [970,66], 'usmg_ad_nfl.main_football_sports_launchpad').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.main_football_sports_launchpad');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/728x90_1a/sports/football/nfl.general -->
    <div id="usmg_ad_nfl.general_football_sports_728x90_1a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/728x90_1a/sports/football/nfl.general', [728,90], 'usmg_ad_nfl.general_football_sports_728x90_1a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.general_football_sports_728x90_1a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/728x90_2a/sports/football/nfl.general -->
    <div id="usmg_ad_nfl.general_football_sports_728x90_2a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/728x90_2a/sports/football/nfl.general', [728,90], 'usmg_ad_nfl.general_football_sports_728x90_2a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.general_football_sports_728x90_2a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/300x250_1a/sports/football/nfl.general -->
    <div id="usmg_ad_nfl.general_football_sports_300x250_1a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/300x250_1a/sports/football/nfl.general', [[300,250],[300,600]], 'usmg_ad_nfl.general_football_sports_300x250_1a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.general_football_sports_300x250_1a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/300x250_2a/sports/football/nfl.general -->
    <div id="usmg_ad_nfl.general_football_sports_300x250_2a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/300x250_2a/sports/football/nfl.general', [[300,250],[300,600]], 'usmg_ad_nfl.general_football_sports_300x250_2a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.general_football_sports_300x250_2a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/160x600_1a/sports/football/nfl.general -->
    <div id="usmg_ad_nfl.general_football_sports_160x600_1a">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/160x600_1a/sports/football/nfl.general', [160,600], 'usmg_ad_nfl.general_football_sports_160x600_1a').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.general_football_sports_160x600_1a');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/skin/sports/football/nfl.general -->
    <div id="usmg_ad_nfl.general_football_sports_skin">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/skin/sports/football/nfl.general', [1,1], 'usmg_ad_nfl.general_football_sports_skin').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.general_football_sports_skin');
    </script>
    </div>
    
    <!-- SMG_ProFootballRosters/launchpad/sports/football/nfl.general -->
    <div id="usmg_ad_nfl.general_football_sports_launchpad">
    <script type='text/javascript'>
    googletag.defineSlot('/7103/SMG_ProFootballRosters/launchpad/sports/football/nfl.general', [970,66], 'usmg_ad_nfl.general_football_sports_launchpad').addService(googletag.pubads());
    googletag.enableServices();
    googletag.display('usmg_ad_nfl.general_football_sports_launchpad');
    </script>
    </div>

Viewing 1 replies (of 1 total)
  • brandon.hcreativemedia

    (@brandonhcreativemediacom)

    Try this:

    Place the following in the header:

    </head>
    <!-- Google GPT script -->
    <script type='text/javascript'>
    (function() {
    var useSSL = 'https:' == document.location.protocol;
    var src = (useSSL ? 'https:' : 'http:') +
    '//www.googletagservices.com/tag/js/gpt.js';
    document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
    })();
    </script>
    
    <script type='text/javascript'>
    <!-- Place all defineSlots here -->
    googletag.defineSlot('/7103/SMG_ProFootballRosters/728x90_1a/sports/football/nfl.main', [728,90], 'usmg_ad_nfl.main_football_sports_728x90_1a').addService(googletag.pubads());
    googletag.pubads().enableSyncRendering();
    googletag.pubads().collapseEmptyDivs();
    googletag.enableServices();
    </script>
    
    </head>

    Then in a text widget or your designated ad space, place your ad tags

    <!-- SMG_ProFootballRosters/728x90_1a/sports/football/nfl.main -->
    <div id="usmg_ad_nfl.main_football_sports_728x90_1a">
    <script type='text/javascript'>
    googletag.display('usmg_ad_nfl.main_football_sports_728x90_1a');
    </script>
    </div>
Viewing 1 replies (of 1 total)
  • The topic ‘Advertisement Codes’ is closed to new replies.