Home » Search Tips » How to implement Google Adsense Search in WordPress blog and Make Money

How to implement Google Adsense Search in WordPress blog and Make Money

Search feature is a major requirement in any site. Its not easy to keep on searching in archive of any site. In this article we will learn how to implement AdSense search results within WordPress Pages. Making money is another part of it. This question was asked to my by Shankar after he saw its implemented on my site. Prior to starting this tutorial I don’t take any responsibility if any article similar to this is already written. I have done it with my own experience.

Create a page in your WordPress blog:

On the sidebar of editor you will find option of adding Template to the page. Leave it as Default.

Don’t write anything in the page now, Just publish it and exit from it.

Now the note the URL of the page which for an example can be http://www.technospot.net/blogs/google-search . Make sure its valid.

Creating your Adsense code for search.

Google Adsense allows you to add a form which act as a search box for any site. But there is one constrain with Adsense Search. Your site should be indexed properly if you want search result to be displayed from your site else it can be used for normal search.Follow the steps:

Now login to your Google Adsense account and go to Adsense Setup > Adsense for search.

After entering all the details of your site and customization you will get an option like

Choose the third option and enter the search page URL which you created in previous step for me i.e http://www.technospot.net/blogs/google-search .

Now you will get two codes. One for the Search Form and other for search result code , which we will use it for our search page we created.

Understanding template and creating template file for Search Page

A template is something which can be reused again and again. In WordPress template file can be used to add it to Pages. So when the page is called it uses the template along with it. Here we will create template file called as “Search.php”

About Ashish Mohta

A Professional Tech blogger, Editor and Writer who talks about solving day to day problems of people who use computer. His expertise are in Windows 7, Microsoft Office, Software, Mobile Apps and Video Posts.