AdSense 广告有时不展示
广告似乎在某种程度上相互冲突。通常情况下,我会同时显示 2 个广告,不会出现任何问题,但在搜索页面上,我会显示 3 个广告,而且大多数时候只有第一个广告有效。
http://chusmix.com/?s=Buenos+Aires
我只是复制粘贴代码三个地方:
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7097762525948790";
/* Chusmix 728x90 Grafico */
google_ad_slot = "9872841053";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
其他广告代码基本相同,只是宽度、高度和名称不同。我做错了什么吗?知道如何修复它吗?
谢谢
It seems ads somehow conflict which each other. Normally I have 2 ads displaying at the same time with no issues, but on search pages I have 3 ads and most of the time only the first works.
http://chusmix.com/?s=Buenos+Aires
I simply copy pasted the code in the three places:
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7097762525948790";
/* Chusmix 728x90 Grafico */
google_ad_slot = "9872841053";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
The other ads code is basically the same save with different width, height and name. Did I do something wrong? Any idea how to fix it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在其中一个广告中,您要在 JavaScript 之间插入一些 HTML,请勿这样做。始终将 HTML 包裹在完整的广告代码周围。
另外,请注意,如果没有足够的广告,则并非所有广告单元都可能被填充。因此,在这种情况下,您需要使用 AdSense 的备用广告网址功能来在其位置显示其他内容。
On one of those ads you're inserting some HTML in between the JavaScript, don't do that. Always wrap HTML around the complete ad code.
Also, realize that not all ad units may be filled if there aren't enough ads. That's why you need to use the alternate ad URL feature of AdSense to display something else in its place in those cases.