Advanced users of Blogger.com service may have tried to insert and put Google AdSense ad code which is actually a Java script directly into the blog pages by manually editing the XML-based template HTML coding interface. Actually, it’s possible add any ad code by using HTML/JavaScript page element within the Blogger new XML template system, but the place where you can place the new block is rather limited, i.e. above or below the post body, header, footer, within sidebar or between blog posts. In case you want to put the ads inside the post, or align the ads to float and wrap around the text, or just within the single individual article content view, you will have to edit directly the HTML coding of Blogger template.
May200930
Adding Google Adsense Ads Code Directly to Blogger XML Template
May200922
Which Adsense Format & Color Scheme Will Work Best for You ?
Should I use the 300x250 Adsense Rectangle or the much wider 336x280 for maximizing clicks? What do I select - 4 or 5 ads per Adlink unit ? Will text only ads perform better than text+image ads ? Should I hide the colored border ?
These are some very common questions among web publishers especially those who have just gained admission to the University of Adsense. While the answer is to keep on experimenting, most Adsense experts employ a simple technique called "AB Split Testing" to optimize their Adsense Ads.
The basic idea is to display different Adsense formats at the same location simultaneously but randomly. [This is done using the random() function in Javascript that generates a number between 0 and 1 with equal probability]
Here's a sample scenario to help you determine what format works best for your site - 300x250 or 338x280 ?
Step 1: Create two custom Adsense Channels - name them as 300x250 and 336x280.
Step 2: Generate the Adsense Javascript code for each of these Adsense formats. Everything will be common in two code snippets except the value of following variables: google_ad_channel, google_ad_width, google_ad_height and google_ad_format.
Step 3: This is an important step, you will merge the two Adsense snippets in such a fashion that each makes an appearance on your web pages nearly 50% of the time. Here's a sample code:
var google_ads = Math.random();
if (google_ads < .5){
google_ad_channel = "300x250Channel";google_ad_width = 300;
google_ad_height = 250;google_ad_format = "300x250_as";
} else {
google_ad_channel = "336x280Channel";google_ad_width = 336;
google_ad_height = 280;google_ad_format = "336x280_as";
}
google_ad_client = "pub-xxx";google_ad_type = "text_image";
google_color_border = "FFFFFF";google_color_bg = "FFFFFF";
google_color_link = "0000FF";google_color_text = "000000";
google_color_url = "0000FF";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
In the next iteration, you may try the same trick with two different color schemes but keeping the Ad format same - just create separate Adsense channels for each color scheme.
If you are displaying Adsense ads on the homepage of blogs or other places where content changes very frequently, it's a good idea to test between Text and Text+Image Ads.
The contextual ads may not be very relevant on blog homepage or archives because of the dynamic content and therefore CPM based Image ads may bring in more revenue.
May200919
Show Google Adsense Ads Below Post Title and Post Body
In this tutorial I will explain how to place Adsense Ads below post title in Blogger Blogs with lots of customization tips. You might have noticed that most of the bloggers show Google Adsense ads below title to increase their "Click Through Rate" (CTR) and earnings.
According to Google Adsense help pages " Where to place Adsense Ads ?". Placing Adsense ads below title and above article content can bring high CTR and performance.
How to place Adsense Ads between Blog posts:
By doing this,the Adsense units will be displayed between the blog posts in the homepage, archive pages and permalink (individual post pages).
1. Sign in to your Blogger Dashboard > Click on the Layout link
2. Click on the Edit link in the "Blog Posts' column [look at the below screenshot]
A pop up window opens ...
3. Check the box next to 'Show Ads Between Posts'
Next, Configure the Inline Ads, choose the Format, Colors etc and SAVE THE CHANGES.
That's it! Now your Adsense Ads will show between blog posts.
Showing Adsense Ad only in Post pages :-
1. Sign in to your Blogger Dashboard > Layout > Edit html
Check the box next to 'Expand Widget Templates'
<b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if>

3. Replace that code in the template with the below code
<b:if cond='data:blog.pageType == "item"'> <b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if> </b:if>
4. Again, scroll down the template and find out data-post body tag
Copy the following code :-
<b:if cond='data:blog.pageType == "item"'> <b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if> </b:if>If you want Ads to show above the Post Body after the Post Title, paste the code above that tag.

If you want Ads to show below the Post Body, paste the code below that tag.

If you would like to show them at both the top and bottom of your posts you should only show them on the post pages since we are only allowed to display a certain amount on each page so to get them at the bottom and top of your posts.
<b:if cond='data:blog.pageType == "item"'> <b:if cond='data:post.includeAd'> <data:adEnd/> <data:adCode/> <data:adStart/> </b:if> </b:if>
Paste the code above and below the <data:post.body/> tag so it should look something like the following screenshot

Save the template and view a post on your blog you should see Ads at the top and bottom of the Post Body.
Leave you comments if you like the post or if you have any questions doubts.