How To Create AdSense For Search Ads & Show Results Within Site

Google Adsense is one of the best way to monetize your blog. For any bloggers, one can quickly add Text ads, link ads and AdSense for search. Adsense for search helps to boost your earning and at the top of it, it helps your readers to find content on your blog. Even if you are not using Adsense for search, you should have a search box on your blog to make sure that your readers can find content within your blog. Moreover showing search results within your blog will help to lower down bounce rate.

When we configure Adsense for search, we have two options to show search results:

  • Within Blog page
  • On Google page

In order to retain the visitor on your blog and lower down the bounce rate, it’s a good advice to show the search result within your blog. In this tutorial, I will be sharing how you can create Adsense for search and show the results within your blog page.

You can earn money with Google Adsense for Search then why not Migrate to it? Want to migrate? Huh! Read this tutorial! I know, most you will know about Google Adsense for search but it’s not bad to let people know who don’t know that they are losing a handsome amount of money from their search results.

In this tutorial, I will be using New Adsense interface as an example and if you still using old Adsense interface, you can click on “Try the new Adsense interface” top right to get into new Adsense dashboard.

1) Open your Adsense account, click on “My Ads”, select “Search” from left, click on “Custom Search Engines” and Click “New Custom Search Engine”.

New Adsense Custom search
  • Save

2) Fill your name, keywords and all the other data.

3) In “What to Search”, select “Only Sites I select” and write the complete URLs (Including HTTP://) of the sites you want to search. You may only add your site to show results from your blog/site.

4) In “Search Results and Ad location”, scroll to “Search Results” and select “On my website using an iframe”.

5) Now login to WordPress dashboard and create a new WordPress page. This page will be the place where the search results would be shown. It’s better to create a page name with “Search” and don’t forget to use no index tag for that page. So let’s assume your page name is

6) So in above image, in URL Field, you will be adding Replacing domain name with your actual domain name.

7) Click on “Save and get the code”. You will get two codes. The 1st code is for displaying the search box, and the 2nd one is to be added in the page where you will like to show the search results i.e., the page you create in 5th step.

8 ) Open your WordPress Dashboard and open HTML editor of the page you created in 5th step. Paste the 2nd Adsense you got in the previous step.

9) Create a text widget and paste the 1st Adsense code.

10) All is well! You are done, Start earning from Search results.

[*] If your search box is looking big, find “size=in the 1st Adsense code and set its value to a lesser amount.

Many Adsense publishers claimed that search box helps them to generate a good revenue. You can always configure ad placement for search while setting the ad or edit the already created channel from dashboard.

Do let us know if you are using Adsense for search and are you showing search result on your blog page, or you letting your readers move away from your blog?

Subscribe on YouTube

Authored By

54 thoughts on “How To Create AdSense For Search Ads & Show Results Within Site”

  1. One more question, is it possible for adsense for search to work when the adsense account hasn’t been approved in the 2nd stage?

  2. Hi Yousuf,

    Great tutorial – thankyou. I have set it all up and am receiving serach results into my iFrame results page as you have shown. But I am not getting any Adsense advertising on the page. Presumably I have to add the various ad units in from my Adsense account in text widgets in a custom sidebar in WordPress? Thanks.

  3. Gaurav Aroroa

    Again Shoutmeloud has helped in a serious issue. Thanks Harsh Sir for providing helpful information and specially with search box setup guide. All at one Place.

  4. quote: Even if you are not using Adsense for search, you should have a search box on your blog to make sure that your readers can find content within your blog.

    Got the search box set up and I am seeing the Google ads, but no results from my website are showing up. I tried several search terms.


    1. you should modify settings while making search box in adsense, they give two options entire web or links u decide, u hv to 2nd one n place ur site links in box

  5. Higly appreciated for such neat and clean tutorial.
    Thnaks, I have replaced wp search box google search πŸ™‚

    1. @Abhishek
      The process is almost the same, though I have updated one image (first screenshot), which would make it easier for you to others to understand the process.

      1. step 9 is not clear , could you please tell where to add text widget ? do i need to go t appearances and add widget?

        1. You can also modify the searchform.php page, if there exists get_search_result method in your php. This page shows you the search input field, so you can copy the first script code and paste in your searchform.php.

  6. Very nice and detail tutorial here. I was wondering if we use the search box, will that count as one adsense ad ? As google allows only three adsense to be displayed in one page ?
    Thank you for sharing

    1. Hey Ben Jamir,
      On a single page we can add three content ads,three link units and 2 search boxes.So adding a search box won’t affect the number of content ads.

  7. Michael Flowersky

    Hey! Thanks for this post! That’s exactly what I was searching for! I’m wondering if it is possible to change CSS of search results and ads within it?

  8. Hi Yousuf,

    Thank you for this tutorial.

    I followed all of the steps but I had 1 problem that I could not find the answer to.

    You said in step 5:
    “don’t forget to use noindex tag for that page”…

    perhaps it has something to do with the theme I’m using but I couldn’t figure out how to do that… I couldn’t find anything on the page or any info searching google.

    Would you elaborate on how to do this?

    Greatly appreciated.

  9. Vinayak Nagri

    I really needed this. I have added it to my blog but I am having some problems.
    When I search for some post on my blog, it only shows the search result of my blog’s homepage.
    2nd – I edited the template of the page to make it without sidebars. I made the change but when I search, I get the server error so I reverted back to the normal template.
    I hope to get the answers as soon as possible.
    Nice tutorial by the way :).

  10. Thanks for this information Yousuf .By using this search engine to our blog we can easily increase our adsense earning . Now i will replace wordpress search with google search .Thanks…..

    1. Yousuf Khan Jee

      The process applies here, to show the search box, create a new Html Gadget and add the code you get from Adsense. To show the results, create a new page and add the Html code you get to show the results.

  11. This is a good tutorial. I don’t know it is so easy to integrate Adsense Search into a WordPress blog. If it can generate some good revenue, I don’t see a reason to not use it!

  12. Thanks for sharing this Tutorial Yousuf Khan. i will definitely try this and add a adsense search in my blog.

Leave a Comment

Your email address will not be published.

Scroll to Top
Copy link