嗨,我尝试将 2 个排行榜放在一页中,但它只显示一个排行榜。
这是我的标题代码
<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('/179670003/Leaderboard', [728, 90], 'div-gpt- ad-1363780690140-0').addService(googletag.pubads());
googletag.enableServices();
});
</script>
这是我的文档正文
<!-- Leaderboard -->
<div id='div-gpt-ad-1363780690140-0' style='width:728px; height:90px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1363780690140-0'); });
</script>
</div>
<!-- Leaderboard -->
<div id='div-gpt-ad-1363780690140-0' style='width:728px; height:90px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1363780690140-0'); });
</script>
</div>
是否可以在一页中添加 2 个排行榜横幅?