Details
-
Improvement
-
Resolution: Won't Fix
-
Critical
-
None
-
None
Description
I created an ad in DoubleClick. When finished you select to get the code. The code is in two parts, one section goes into the header the other into the body. I actually do not know if the header is required but I am assuming yet. I created an entire web page and then stuck that code in the panel. You are great at coming up with better elegant solutions. I am posting my code below for you to review and recommend a better solution if any. Thanks.
{pre}<!DOCTYPE html>
<html lang="en">
<head>
<!--
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> -->
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- <style type="text/css" media="screen">
</style> -->
<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>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.defineSlot('/18564968/Left_Column_Ad_Space', [200, 167], 'div-gpt-ad-1360190631089-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
</head>
<body>
<h6>Advertisement</h6>
<!-- Left_Column_Ad_Space -->
<div id='div-gpt-ad-1360190631089-0' style='width:200px; height:167px;'>
<script type='text/javascript'>
googletag.cmd.push(function()
);
</script>
</div>
</body>
</html>