Skip to content

Instantly share code, notes, and snippets.

@harryward
Created May 13, 2013 19:36
Show Gist options
  • Save harryward/5570860 to your computer and use it in GitHub Desktop.
Save harryward/5570860 to your computer and use it in GitHub Desktop.
DFP6 Sample Code - Newsletter
<html>
<head>
<script type='text/javascript' src='http://www.googletagservices.com/tag/js/gpt_mobile.js'>
</script>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.defineUnit('/8328825/Local/Abilene/KEAN/newsletter', [300, 250],'div-sample-320x50').addService(googletag.pubads()); googletag.enableServices(); });
</script>
<meta name="viewport" content="width=320" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #000;
}
.white {
color: #FFF;
font-family:"Helvetica Neue", Arial;
font-size:12px;
text-align:center;
}
.white-h {
color: #FFF;
font-family:"Helvetica Neue", Arial;
font-size:24px;
text-align:center;
}
-->
</style><title>Newsletter/Live Intent Ad Demos</title></head>
<body>
<br>
<h1 class="white-h">Newsletter/Live Intent Ad Demos</h1>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">
<center><b class="white">Local/Abilene/KEAN/newsletter</b></center><br>
<div id='div-sample-320x50'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-sample-320x50')}); </script>
</div>
<br><br>
<center><b class="white">Newsletter Ad Tags</b></center><br>
<a href="http://pubads.g.doubleclick.net/gampad/jump?iu=/8328825/Local/Bozeman/KXLB/home&sz=300x100&c=5656565656">
<img src="http://pubads.g.doubleclick.net/gampad/ad?iu=/8328825/Local/Bozeman/KXLB/home&sz=300x100&c=5656565656">
</a>
</td>
</tr>
</table>
<a href="http://ad.doubleclick.net/N8328825/jump/Local/Abilene/KEAN/newsletter;sz=300x250;ord=123456?"><img src="http://ad.doubleclick.net/N8328825/ad/Local/Abilene/KEAN/newsletter;sz=300x250;ord=666666?" width="300" height="250" /></a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment