Add Google Adsense to your WordPress blog

With luck it'll pay for your hosting costs. If you don't have an Adsense account you'll need to set one up here. Go to your Google account page, select an ad configuration and copy the code Google creates for the ad display you want. You need 120 or 160 pixels wide if you put it in the sidebar. The one here @ my wits' end is 160 px wide.

  1. Go to Admin » Appearance » Widgets.
  2. Drag a Text widget into the position on your Primary Widget Area that suits you.
  3. Paste the code into the Text box.
  4. Wrap <center> </center> tags around the Google code as shown below to centre the ad in your sidebar. Otherwise it lines up on the left and will probably look off-balance.
  5. Click Save.
<script type="text/javascript"><!--
google_ad_client = "specific to your account";
/* 120x600, created 9/26/10 */
google_ad_slot = "xxxxxxxxxxxx";
google_ad_width = 120;
google_ad_height = 600;
<script type="text/javascript"

It may take a few minutes, or even hours, for Google's spiders to cotton onto your pages. So don't assume that a blank box is a sign that you've blown it. 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s