AdSense is Google's free program that allows web publishers/owners to place relevant ads on their websites and earn money. It allows web publishers/owners to earn money whenever someone clicks on the Google ads displayed on their pages.
Personally, I find AdSense quite easy to deploy but less easy to understand. That is because it is quite easy to get your HTML code for AdSense, plonk it onto your web page(s), and shortly after you will see the ads appear on your page(s).
Just deploying AdSense ads to your site does not mean that they are "optimized" - i.e. earning you the best revenue they can. Revenue stream from ads are significantly affected by the choice in format, size, color as well as their positioning on the pages. And then there is the "challenge" of producing relevant reports to view and track performance of the ads that are running on your site. And this falls significantly into the realm of "channels".
In other words, to really have a good chance of optimizing your revenue stream via the placement of Google ads on your site, there is a quite a few things you need to know. I presume a lot of web publishers using AdSense are like me: impatient and eager to get something on your site with minimal amount of time "wasted" on reading, then letting the ads run with only occasional cursory checks on how they are doing. We all seem to lead such busy lives and we have 10,000 other things to do - so who has time to read through the tons of (helpful) material that Google provides to help us achieve our goals.
While not claiming to be a Google AdSense expert, I have noticed that once in a while, when I make the concerted effort of reading up and following some of Google's suggestions, my revenue from Google AdSense has been known to jump by 300% or more. However, the difficulty is that there is so much still to read and learn and know. And each time I put aside time to do some reading and research, I get sidetracked by the multitute of useful links. And then after hours of reading around and around the same or similar pages, I feel all lost, there is still no clear picture in my head and I give up; leave my ads "unoptimized", and go back to just whistling in the dark for more clicks and revenue.
Hence the purpose of writing this series of Google AdSense articles is to try and provide you (and me) with some coherent, logical, sequential way of doing things so that you don't go through this protracted, tedious, and ineffective ways of doing things.
It is very confusing if you are trying to simultaneously juggle setting up an optimized AdSense, trying to learn all the information you need to know, as well as minimizing the time you need to set aside to do all these. Google's steps, help, and tips are all interlinked and while the information is generally very good, it does mean that you are constantly jumping from one hyperlinked information page to another, just trying to find and absorb what you can use now so you can complete your task.
So I am going to structure the sequence of these articles as if you are a newbie:
Google's AdSense is free to join.
Okay, lets say you have applied and set up an AdSense account and you are now eager to place some Google targeted ads on your web pages. What do you do now?
To get the AdSense HTML code to put on your pages, you need to set up an AdSense "shell" configuration - what colour you want the ads to be, what size, how many ads, and where you want to place these ads. You don't actually specify the ads themselves. Rather, you are setting up the "shell" so that Google can drive ads into those allocated "shells" that are relevant to the contents of your pages.

On this page, you can choose one of the sub-categories under AdSense.Google offers AdSense in a number of sub-categories - to suit the needs of your site as to where you want to place the ads, whether the Google ads are to appear on standard web pages or mobile sites, etc.
At the time of writing, Google is offering 5 sub-categories of AdSense (click image on right to view fully). It is possible to use more than one of these sub-categories. The current sub-categories are:
At the moment, as I am only employing AdSense for Content and AdSense for Search, I will only be writing on these two sub-categories for now. And I will be writing with specific reference to Drupal sites as that is what I currently use the most.
Let's go to the next step: AdSense for Content.
"AdSense for Content" are contextual ads (i.e. theyare relevant to the topics on those pages), driven by Google, that are placed on web sites. Almost everyone has seen these types of ads on web pages.
Publishers/owners of sites join Google AdSense program. The "AdSense for Content" is one of 5 sub-products under the AdSense programe. With AdSense for Content, publishers can then decide on various formats for the ads that will appear on their sites (e.g. leaderboard, images only, text only, square boxes, banner sizes, etc.) They will then be given a block of HTML code which they can place in the appropriate locations on their web pages.
AdSense for Content is an easy way to monetize your site(s), is free to join, and easy to implement. Your AdSense account also offers ways and means (e.g. via Channels) of tracking performance of ads placed on your sites and of generating the reports you need to monitor these performances.
In broad terms, Google will pay these web publishers for ad-clicks (whenever a user clicks on these ads).
After you have logged into your Google AdSense account,
On the AdSense for Content page, it will open, by default, in the "wizard" style of setup. To setup your AdSense "shell" in the "wizard" mode, Google will show a step at a time and you will be going through multiple pages to complete the setup.
I personally find the "single page" easier to use as you can see all the things you will need to select all on the one page. So,
On this AdSense Setup page, you will have to choose a number of things so that you can specify how the Google ads will appear on your pages. In other words, you will be customizing the look, colour, size, and appearance of an ad "shell" so it fits with the aesthetic scheme of your site.
The things you will be choosing and deciding are:
Don't worry if this all sounds a bit over-whelming and a bit confusing at this stage. We will go through these step by step.
Lets start off with step one: Choose Ad Type
Summary Checklist of types and number of AdSense ads you can have on each page: AdSense Programme Policies summary
Google gives you a choice between Ad Unit or Link Unit.
If you choose Ad Unit, you can decide if you would like to allow image and text ads (so that Google can either rotate a relevant image or a relevant text ad on the ad space you allocate), or you can specify if you want only image ads or only text ads.

The (clickable) image here shows you a quick visual difference between a Ad Unit and a Link Unit.
Apart from the visual difference, a Link Unit displays a list of relevant topics. When users click a topic, they are brought to a page of related ads. In other words, with Link Units, it does not display a specific advertisement from a single advertiser.
You do not get paid if a user click on a topic in the Link Ad. You only get paid if the user later clicks on a specific ad on the resultant page of related ads.
Ad Units will display specific advertisements from specific advertisers - and this can be either in textual form only, as image ads only, or a rotational combination of either whenever a page is viewed.
Q. So why would you use Link Units?
Google says the Link Units are flexible because they "available in a variety of sizes to fit those hard-to-fit places on your site".
Additionally, if you are placing a lot of Google ads on any of your pages (making sure that it will work with your page layout AND will be of benefit to your users), then you might choose to include some link units.
According to Google AdSense policies,:
You will almost certainly be employing some Ad Units. As you saw above, Ad Units are offered to you in 3 variations - images only, text only, or allow Google to randomly drive either contextual image or text ads into the ad "shells" you set up.
Here is a quick visual example between a TEXT Ad Unit vs. an IMAGE Ad Unit. I am only showing one size/format but Google does offer Ad Units in multiple sizes. (We will come to that later).
The default (and Google recommended) setting for Ad Units is to choose "Text and Image ads".
According to Google, the combination of the image/text ads will is more engaging for your users and will add "interactive content" to your site. Also it will increase competition for your ad space as advertisers will bid for space on your site whenever your site's content is relevant for them. Google also says:
"By choosing to display image ads in addition to text ads, you can help make sure that you'll have all available advertisers bidding to appear on your site. Both text and image ads will compete in the same auction to be displayed on your pages and we'll automatically display the ad(s) that will be most effective for you on your site."
- from Google's Newbie Central - Ad Formats
You will get paid each time a user clicks on an Ad Unit displayed on your web pages.
For the purposes of this learning, let's choose:
Ad Type = Ad Unit [text and image ads (default)]

Then let's proceed to the next step in AdSense setup: Choose Ad Formats and Colors
The main reason why people run AdSense ads on their pages is to monetize their sites (i.e. earn some money from having Google ads on their sites). The more users click on the ads you have on your pages, the more money you can earn. So if you are going to place on your pages, you want to know what are the best configuration of ads to run, and where to place them to optimize the number of (ad-)clicks you will get. At the same time, to get more and more visitors to your site, you need good content - no one wants to visit pages that only have ads and more ads. The ads should be a bonus to you (monetizing) AND a bonus to your visitors (they see it and it is relevant enough to them to want to click them).
So before we take another step, here a few things that will be useful for you to know. The color, format (sizing, shape) and placement of your ads will have a significant on how much money you can earn.
Google has done some research on these factors and they provide tips and guide to help you maximize your profitability in using their AdSense program.
Where you place your ads will have a significant impact on the performance. And where you want to place the ads will also help determine what size and/or format you should use.
Based on Google research, the following "heat map" can be used to quickly help you decide where you might want to place your ads. And based on the general layout of your site or pages, you can determine how big and what kinds of ad "shells" (e.g. images vs text ads) you might want to create.
This here is a list of ad formats that will support image ads:
At the time of writing (Jan 2010), Google AdSense policies allows up to 3 Ad Units and 3 Link Units per page.
Summary Checklist of types and number of AdSense ads you can have on each page: AdSense Programme Policies summary
Let's assume that for purposes of this exercise, you have decided you would like to set up an AdSense "shell" with placement, shape, and size approximately as per indicated here:
Have a look at Google's full range of AdSense Ad Formats.
Say, we will go with the Banner size ad format (468x60px)
And since in the previous step we have selected Ad Type = [text and image ads], this image here shows what the ad might appear like.
In choosing what colour palettes you want for the ads that appear on your site, Google provides a set of predefined color palettes. You can also create your own color palettes to better match the color theme on your site.
According to Google's "What Color Palettes Are Most Successful", choosing the right colors will yield "biggest revenue impact for the smallest effort".
The goal of the ads is not to try and trick or confuse your users into thinking that the ads are contents. Rather it is to serve your users by making the ads visible (without being annoying or too glaring) so that they can click on the ones that are of interest to them.
| Inline Ads (within Content) | Ads Next to Content | |
| Ads on Light Background | Blend | Blend or Complement |
| Ads on Dark Background | Blend, Complement, or Contrast | Contrast or Complement |
Tip on Borders
Google says that Ads generally perform better without borders
(source page: https://www.google.com/adsense/support/bin/answer.py?answer=32614)
Rule of Thumb
Further tips on text and hyperlinks:
Google recommends for your ads to use the same colors for the text and hyperlinks within the ads as you are already doing on your pages.
Exceptions to the Rule:
After you have made your selections, we can move on to the next part of the AdSense Setup: Choose Ad Channels.
To continue with this tutorial where we have chosen AdSense for Content so far, the following image shows the channel types that are available when using AdSense for Content.
As you can see, even though Google allows you to create a great number of channels, you can assign between 1 to 5 channels to each specific ad (whether they are Ad Units or Link Units).
Either choose a channel and click corresponding 'add' link or click the 'Add new Channel' link to create a new channel which will then be assigned to the Adsense "shell" you are creating.
Google recommends precise and consistent naming for your custom channels. Their recommendation is to follow the pattern:
Page+Location+AdFormat+ColorPalette
However you don't have to follow this. You only have to keep in mind that channels are either
The next step is to name your AdSense "shell" unit, and then click the "Submit and Get Code" button. This will be the code that you will paste into the appropriate position on your page(s).
The names of your AdSense units are meant to help you recognize them later and so that you can organize them. (The name will also appear in your code but you can delete that if you like).
Google recommends the following pattern for naming your AdSense units:
mysite_section_location_AFT_size
(AFT stands for "above the fold")
For example:
sports_football_ATF_250X250
Done! That's it. You have created your first AdSense ad "shell", and once placed, will start earning you some revenue with every click.
Here, I will pull together a quick overview of AdSense for Content and a Summary or checklist of the important tips and info needed for Google's AdSense for Content.

| Ad Units | Link Units | ||
|---|---|---|---|
| as Text Ads | as Image Ads | ||
| Leaderboard (728x90) | 120x90 (up to 5 links) | ||
| Banner (468x80) | 120x90_4 (up to 4 links) | ||
| Half Banner (234x60) | 160x90 | ||
| Button (125x125) | 160x90_4 | ||
| Skyscraper (120x600) | 180x90 | ||
| Wide Skyscraper (160x600) | 180x90_4 | ||
| Small Rectangle (180x150) | 200x90 | ||
| Vertical Banner (120x240) | 200x90_4 | ||
| Small Square (200x200) | 468x15 | ||
| Square (250x250) | 468x15_4 | ||
| Medium Rectangle (300x250) | 728x15 | ||
| Large Rectangle (336x280) | 728x15_4 | ||
Following are tips as per Google recommendations. Use them as guide as they are rules of thumb only.
Use Google Heat Map as guide for better placement | Inline | Next to Content | Exceptions | |
|---|---|---|---|
| Light Background | Blend | Blend/Complement | lots of repeat customers - use (up to 4) rotating color palettes - use Contrast if a lot of competing ads or content |
| Dark Background | Blend/Complement/Contrast | Contrast/Complement |
Google's AdSense programe includes "AdSense for Search" which allows you to create a search feature you can put on your own site. With this, you can also specify that the search results are only from specific sites (e.g. only from your own site(s) as well as from the entire web. This is a doubly useful package as it provides the ability for your visitors to be able to do a search directly from you site(s). Additionally, Google will also serve up relevant ads on the search results page that will give you another change to earn AdSense revenue if/when your visitor clicks on any of these ads.
Quite apart from any money revenue stream, having a search engine on your site is a benefit to your users. With AdSense for Search, each time a user does a search, they will be taken to a search results page. On that page will be Google driven ads. You earn revenue each time the user clicks on an ad (not on a general search result listing) in the search results page.
Google will place contextually relevant ads on your search results page.
Google used to have (and may still have. Google Help info is not very helpful or clear about this as at Feb 2010) to offer what they called a CSE (Custom Search Engine). That is, Google offered you the ability to create a search engine for your site - which was called a CSE. And if I remember correctly, you can edit it later and change settings.
At the time of writing this side note (Feb 2010), I am not sure if Google still offers the ability to create a CSE, or if they are in some transition stage of trying to integrate the existing CSEs with their newer product, AdSense for Search. I can't find any clear documentation of what is going on at Google and the tutorials and guides they have on CSEs seem to be outdated and no longer applicable.
I would however like to quote an excerpt from one of Google's Help topic:
"If you already have an existing AdSense account, we recommend that you create all of your search engines in AdSense for search and only use the CSE page to access advanced features."
~ from Google's help article "What's the difference between AdSense for search and Custom Search Engine?"
So I will just ignore CSEs all together and only talk about AdSense for Search - as they seem to be right now.
Most of the steps required are pretty self-explanatory so I will just point out a few features that are directly relevant to a Drupal site.
You have 2 choices here; to allow your users to get the results for their search query:
* only from your own site(s) or
* from the entire web.
Here you can specify one or more sites, pages, sub-domains from which your users will get their search results. This is useful if you have more than one site or have sites you know are likely to be of use to your users.
You can list the following types of URLs (one URL per line):
What is the purpose of specifying optional keywords?
As I mentioned above, when a user users your AdSense for Search search-box on your site, they get sent to a search results page. On this page will be Google driven ads. Specifying the optional keywords here increases the likelihood that Google will deliver up more ads that are truly relevant to your site's core topics or the topic of your search engine (if you have a different search box in different topical sections of your site). The more relevant the ads are (on the search results page), the more likely your users will find them useful and so will click on them. And it is only when they click on the ads that your earn revenue.
Examples of possible theme-related keywords:
| Website Theme | Possible Keywords |
|---|---|
| jewelry | jewelry, jewelry making, beads, craft |
| Mac | Apple, Mac, OS X |
Most of the choices you have to make here are quite self-explanatory. I just want to comment on:
To have or not to have Custom Channels
This is optional. But it is a good idea to create a new channel and especially if you have multiple sites, to prefix your channel with some your site name or initials of your site name. That makes it much easier for you to later get reports for the performance of each channels and the ads and search performances related to each site. Custom channels are also great if you are creating multiple search boxes, one for each different section of your site.
Here is your opportunity to custom style the search box so that it suits and fits the look of your pages. As you select each radio box, the sample search box will change according so you can preview the look of the box.
Similarly, you can vary the length of the search box in the "Text Box Length". The sample shown will also change accordingly.
We will be discussing search boxes and search results page. It can be a bit confusing if you don't have a clear picture of the differences and the process.
The page that contains your search box is (not necessarily) the same page where the search results appear. When a user does a search, the results appear in another page. Click on the small image here to get a clearer idea.

You have 3 options for the display of your search results.
Normally option (3) would be the (personal) favourite option as you have much more control over the look and feel and the visitor does not leave your site.
However with Drupal, that is not quite straight forward (unless you have a Drupal contribution module that will do this for you. But I prefer to have minimal additional installations whenever possible).
To easily display the search results in a designated page on your Drupal site is not easy because:
1) First, you need to create a page in Drupal for the search results to appear (Google will give you the code to put on this page when you finish your adSense for Search configuration. This is not the problem). The URL of that Drupal page will either be an alias (if you have the Pathauto contributed module installed) or will take the form of ".../node/129"
2) Then when search results are generated, Google appends a query string to the end of the name (URL) of your search results file-name. When that happens, Drupal will not recognize that modified file name and will display a "Page Not Found" result. (This is the problem)
So if you have a Drupal site and you don't want to install anymore contributions?
You choose either option (1) or (2) .. i.e. for the search results to appear either in the same or a new window. (I prefer the latter as it leaves as the window with your site remains open for the user).
Once you do that, Google still kindly gives you a way to customize the search results page via the ability to include your site logo.
You can either have your logo appear to the left or above the search results. Google tells you what size-dimensions is allowable for each option and the file formats for the logo.
As you can see, the file formats for the logo can be: .jpg, .png, or .gif
If you choose to have a left logo, the maximum logo dimension is 100x100px.
If you choose to have a top logo, the maximum height is 50px (but the width can be much longer, and is not specified by Google).
Obviously you must create or have a suitable logo (image) you can use; upload that and then specify where that logo image is located. What is very good about this is that you can designate a destination URL (e.g. your homepage) so that your visitor can click the logo and return to your site.
Okay, let's say you are quite determined to have the search results display in your own site (and not have your visitors leave your site). And I applaud you because it is a good thing. Furthermore, if you can create a page within your own site - then you have better control over that page - including adding another search engine on that page (so that your users can easily conduct another search in your search results page) and/or a Link Unit. Which will help with your revenue optimization.
So how do we do this? Remember that it is no use to create a page for your search results within Drupal.
In the "Enter URL where search results will be displayed", you have to enter the complete URL of the (results) page that you just created and uploaded.
That's basically it for the workaround solution. Now you have a results page that is under your control and that is within your site/domain. When you get the code you need, you can test this out. For now, let's carry on with the remaining steps to create your AdSense for Search.
Enter width of results area:
The default is 800px and usually that will work for most results pages. This is the horizontal width across for the lists of search results.
On the search results page, Goggle will automatically serve up relevant ads. Here you specify where you want those Google ads to appear on your results page.
Unlike AdSense for Content, you cannot have your own customized color palettes here. Google provides you with a set of predefined palettes. You can try each one out and the sample will reflect the changes. Choose the one you think will best suit your site.
You get to name your search engine just before you finish your configuration and get your required codes. Click the "Submit and Get Code" button and you will be taken to a page with the codes.
If you have selected before that you want the search results to appear within (a page) on your own site, then there will be two snippets of code.
If you have not selected to have search results to appear within your own site, then only one snippet will be created. That is to be pasted into pages where you want the search box to appear.
Locate the AdSense for Search you created, click the "Edit Settings" link.
Here, I will pull together a quick overview of AdSense for Search and a Summary or checklist of the important tips and info needed.