Adding a search tool to your website provides your users with an easy method to find information and if you have a Google Adsense account you can take advantage of a Adsense Customized Search Engine.
This tutorial will explain how to create a Adsense Customized Search Engine using the Adsense dashboard and also how to install the search box (and results page) onto your website.
I am focusing on installing using WordPress but you can adapt the method for your own site if you have basic HTML knowledge. Let’s get started!
Adsense Customized Search Engine Features
- Search entire web or specific websites
- Define Country and Language to Search
- Customise the Search Box Style
- Display Adsense ads to increase earnings
Create your Adsense Customized Search Engine
Within your Adsense account dashboard click on the “My ads” tab and click the “+” icon on “Search” in the left menu. Click on “Custom Search Engines” and then select the “+ New custom search engine” button.
You will be presented with a form to fill out to customize your search engine. You can choose to search “The entire web” or “Only sites I select”, I suggest using “Only sites I select” to keep users engaged with your page. You can also set specific keywords for your search engine which will make sure relevant ads are displayed.
You can further customize your search engine by defining your search box style and the ad style of your Adsense ads. Finally you can select how you want your search results to be displayed, you can select from:
- on a Google page in the same window
- on a Google page in a new window
- on my website using an iframe
If you are displaying the search results within your own page you will first need to create a page to do so. If you are using WordPress add a new page and give it a title of “Search Results” and paste its permalink where it says “URL where search results will be displayed:”
This is a personal preference but I use “on my website using an iframe” to keep the layout of my website consistent. Click on “Save and get code” and you are given the code you need to paste into your website.
Installing your Adsense Customized Search Engine
If you chose to display your search results in the same or a new window you will be given one block of code to add to your website. However if you chose to display your search results within a page on your website you are given two blocks of code.
Copy the code labelled “Search box code” and paste this is the area of your website where you can the search bar. I suggest a prominent position above the fold (The area of your website that displays upon loading) so users can find it quickly. If you are using WordPress you can create a new text widget in the sidebar and paste your code.
If you are displaying your results within a page on your own website copy the code labelled “URL where search results will be displayed:” and you will need to paste this in a page on your website. If you are using WordPress open the page you created earlier called “Search Results” and paste in your code.
Now you should have a Adsense Customized Search Engine implemented into your website, try different search box styles/placements and track the usage in Adsense to decide what is working best in your website.