Showing posts with label money. Show all posts
Showing posts with label money. Show all posts

Sunday, April 26, 2015

Adsense Search

Refer more articles on SEO series here:
http://mylearningcafe.blogspot.in/2015/04/search-engine-optimization-seo-series.html

What is Adsense Search?
AdSense for search is a free product that lets you to place a Custom Search Engine on your site to provide users with web search.

Refer below steps to setup a search engine in your blog.
Adding search in your blog right side bar
  • Once you have got the code as mentioned above, go to blogger
  • Click on Layout
  • On the right side bar, click on "Add Gadget"
  • Select HTML/Javascript
  • Put in a name and put the code
  • Click Save
Adding search in your posts (of your blog)
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<<<Insert Your Encoded Adsense Code here>>>
</b:if>
<p><data:post.body/></p>
  • Click Save
Adding search in your title header (of your blog)
Refer more articles on SEO series here:
http://mylearningcafe.blogspot.in/2015/04/search-engine-optimization-seo-series.html


Adsense on blogger

Refer more articles on SEO series here:
http://mylearningcafe.blogspot.in/2015/04/search-engine-optimization-seo-series.html
 

What is adsense?
Adsense is Google's content-targetted advertising program.
One can make money by enabling Adsense on their blog. Relevant ads will be shown on your blog (once approved).

Follow steps below on getting adsense (on blogger):

1. Apply for adsense
  • Log into blogger and go to Earnings (n the left side bar menu).
  • Click "Sign up for Adsense"
  • Complete the application form and await approval.
  • Once approved, you will get a confirmation email.
  • Go to Earnings section and click on "Yes" for "Show ads on blog"
  • Ads will not appear on your blog initially, it may show blank ads for 2 days.

2. Putting ad in the right side bar
  • Once approved, go to Earnings > View Dashboard > My ads
  • Click on "+New ad unit"
  • Select the "Large skyscraper"
  • Automatically it will get activated on your blog

3.Getting code for ads on your blog (not the side bar)
  • Once approved, go to Earnings > View Dashboard > My ads
  • Click on "+New ad unit"
  • Select the type of ad you want
  • Once selected, click on get code.
  • Copy the code.

4. Putting the ads in the Post (below title)
 <div expr:id='"adsmiddle1" + data:post.id'></div>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
</div>
</b:if>
</b:if>
<div expr:id='"adsmiddle2" + data:post.id'>
<data:post.body/>
</div>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<data:post.id/>");
var obj1=document.getElementById("adsmiddle2<data:post.id/>");
var s=obj1.innerHTML;
var r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>
  • Put your converted code by replacing the line in the above code <!-- Add here the code of your ad -->
  • By default, the ad will appear below the title.
  • If you want it at another place, at that place put the following <!-- adsense -->