Google Adsense using -Core Only- in Drupal 6x
Google Adsense is a great way to earn extra money on your websites. It is easy to do this in Drupal. There are modules you can install to improve the control you have over Adsense in Drupal, but to keep it simple, (which I like to do) you can do it in core only. We are going to put it in a block like I have it here on my site. Here are the steps.
1. Sign up for adsense (obviously)
Note that when you set up an adsense account, it will not be activated immediately. It takes about a day. They will send you a nice e-mail that has instructions on how to create your add. They even have a few great tutorial videos. Thanks Google.
Now, while you are waiting...
2. Go to your drupal site and go to administer > Modules >
3. Make sure you enable the PHP filter module. It is a core optional module that is off by default. Enabling this will allow Drupal to show your ad which is not in HTML format. Save
4. Now you need a place to put your ad. We are going to put it in a block. Go to administer > Blocks
5. Look at the top of the blocks area and click the "add block" tab
6. Type in a description like "adsense" or "ads"
7. Give the block the title that will be shown above the block. We have "visit our sponsors" you can also leave it blank and have no title.
8. Hopefully you have your adsense account set up now. Go to your google adsense account and follow their instructions on how to create your ad. Make sure you know the size of the area you are planning to put it in on your site.
5. Copy the code for the ad you created on google adsense
6. Go back to the block you are creating and paste the code into the body area.
7. THIS IS IMPORTANT Click the imput format link under the body field.
8. Choose PHP code. If you don't do that, than your ad will not show! *if you don't see that choice, see step 2 and 3.
9 . Save your block
For more information about this topic there is a great article written by the guy who wrote the adsense module and contributed it to the Drupal community.