我试图在我的 drupal 网站上配置 google adsense。我用了两种方法。两个都不行
从 google adsense 复制代码并将其粘贴到左侧块的 html 源代码中。没运气
安装了 adsense 和 adsense 注射器模块。广告仍然没有出现。
请帮忙
-维维克
我在你的页面上找到了这个
<script type="text/javascript"><!--
google_ad_client = "pub-5173518975802519";
/* 120x600, created 2/24/10 */
google_ad_slot = "1651449242";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
更改第一行,使其显示为:
<script type="text/javascript"><!--
这个解决方案适用于 Drupal 7。对我有用的解决方案是我使用了 adsense 标签格式,然后使用这种格式在网站上展示广告。请注意,此行不需要任何 js 包含或脚本标记。您只需要启用 Adsense 标记格式(我的意思是短代码)。实际上,我正在为管理员禁用广告,而对于其他用户,我得到的是空白广告,页面上已占用空间,但没有显示任何内容。经过不同的调整和实验后,我得到了以下代码为我工作
[adsense:336x280:XXXXXXXXXX]
第二个参数是宽 x 高第三个参数:XXXXXXXXXX 表示谷歌广告位/id。
我希望这对其他人有帮助。
阿塔·穆斯塔法