Scroll
Drupal 7のノード本文へのAdSenseコード
フォーラム
イヴァンさん、こんにちは、あなたのアドバイス通りにやったつもりなのですが、私が設定したものが何も表示されません:
1) AdsenseとAdsense Injectorモジュールをインストールしました
2) 自分のnode.tplを開いて、次のコードを挿入しました
<div class="node-content"<?php print $content_attributes; ?>>
<?php
// Hide comments, tags, and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
hide($content['field_tags']);
print render($content);
?>
</div>
<div class="adsense-body1" style="margin-bottom:1em;">
<!-- START Google AdSense Ad Unit code, provided by Google -->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3282980833393742";
/* My Ad Unit Description */
google_ad_slot = "1235241790";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- END Google AdSense Ad Unit code, provided by Google -->
</div>
3) 入力フォーマットでAdsenseタグの使用を許可しました
4) Adsense Injectorモジュールの設定 admin/config/content/adsense_injector に移動し、
Inline Insertionというフィールドに次を挿入しました:
<div id="adsense-body1" style="display:block;float:right;margin: 5px 10px 5px 10px;">[adsense:300x250:235241790]</div>
結果: http://floomby.ru/s1/Qfwwb/full/ 匿名ユーザーには広告が表示されません.....助けてください...
- コメントを投稿するにはログインしてください