PDA

View Full Version : Editing Template - Unclosed Curly Brace error


AlpineZone
10-27-2011, 09:36 PM
Trying to move from OpenX ad serving to Google DFP. The following code I added in is throwing me an error (in headinclude)

<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>

--------------- Added 1319755436 at 1319755436 ---------------

Well I noticed a closing </script> tag was missing from the preceding Google Analytics tracking code. but for some reason, I'm still not seeing my ads.

Also, I tried the vb:literal trick that gets me working, and I only need to wrap the first section with VB Literal to get it to work.