Skip to content

Instantly share code, notes, and snippets.

@c4milo
Created August 8, 2012 01:35
Show Gist options
  • Save c4milo/3291257 to your computer and use it in GitHub Desktop.
Save c4milo/3291257 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html lang="en-us">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Widgets Magazine</title>
<style type="text/css" media="screen">
</style>
<script type='text/javascript'>
(function() {
var useSSL = 'https:' == document.location.protocol;
var src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt_mobile.js';
document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
})();
</script>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.defineSlot('/1210941/Mobile_Adhesion_320x50', [320, 50], 'div-gpt-ad-1343861299729-0').addService(googletag.pubads());
googletag.defineSlot('/1210941/Mobile_Adhesion_320x50', [320, 50], 'div-gpt-ad-1343861299729-1').addService(googletag.pubads());
googletag.enableServices();
});
</script>
</head>
<body>
<!-- Mobile_Adhesion_320x50 -->
<div id='div-gpt-ad-1343861299729-0'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1343861299729-0')});
</script>
</div>
<div id='div-gpt-ad-1343861299729-1'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1343861299729-1')});
</script>
</div>
</body>
</html>
@c4milo
Copy link
Author

c4milo commented Aug 8, 2012

It basically adds a new slot for the same AdUnit pointing to a different div id.

@jerometufte
Copy link

how would this solve this issue i was having!? haha, what have you learned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment