Home » » google bloggerで個別エントリー記事の上下にAdSense 広告を表示する

google bloggerで個別エントリー記事の上下にAdSense 広告を表示する

奈美 | 火曜日, 4月 02, 2013 | 0 コメント

前回はgoogle bloggerで個別エントリー記事が開かれたときだけAdSense 広告を表示する
を試して見ました。
その記事は
google bloggerで個別エントリー記事が開かれたときだけAdSense 広告を表示する

今回は個別エントリー記事が開かれたときにだけ
上下にAdsense広告を表示するように試して見ました。
別にAdsenseじゃ無くても好きなものでも構いません。。。

20130402212800

参考にさせて頂いたサイトは以下で詳しく説明されてます。

Google Blogger で記事上と記事下に AdSense を挿入する

メモ書き

<data:post.body/>
を探して

<b:if cond='data:blog.pageType == "item"'>
<p>
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-nnnnnnnnnnnnnnnn&quot;;
google_ad_slot = &quot;nnnnnnnnnn&quot;;
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;
&lt;script
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;
type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;

<data:post.body/>
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-nnnnnnnnnnnnnnnn&quot;;
google_ad_slot = &quot;nnnnnnnnnn&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;
type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;

</p>
<b:else/>
<p><data:post.body/></p>
</b:if>


を貼り付ける。
<data:post.body/>は入らない!
私の場合<data:post.body/>が三箇所出てきたので
一番最初のものに貼り付けました。

Share this article :

0 コメント:

コメントを投稿

 
Copyright © 2011. Web Drawing - All Rights Reserved
Proudly powered by Blogger