Congratulations! You’ve made the decision to monetize your blog and I couldn’t be happier for you! It’s about time that you start to make some cheddar from your blog, after all you do work hard at it, don’t you?
In this blog post, I’m going to show you how to install Google Adsense Ad units in the header, sidebar & footer of your website.
Some things to know before getting started:
- You can only have 3 Google Ad Units per page
- Sometimes it takes a few minutes for the ads to appear after you’ve installed the code
- Each WordPress theme is a little different. While the instructions given below will cover most themes, not all of them will be done exactly as instructed below.
Installing Google Ads in the Header section of your website
1. Login to your Google Adsense Account
2. Click on My Ads in the top left corner
3. Click on New Ad Unit under Content > Ad units
4. Give your Ad unit a name and select which size ad unit you’d like. For the header I would recommend either the Responsive or Leaderboard sizes. Then click on Save & Get Code.
5. Copy the ad unit code and head back over to your website. Now depending on your website theme, you can place the Google Ads one of two ways: Either through a Header Widget or directly into the header via the header.php file. Not all themes have a built-in header widget, which will mean you will have to place the code directly into the header.php file.
6. If you do have the header ad widget (Appearance -> Widget -> Header) then you can paste the ad code right into the Text widget and place it into the Header Widget area.
7. If you do NOT have a header ad widget, then you’ll need to add the code directly to the files. Go to Appearance -> Editor-> Header.php. Now here is where it’s going to get tricky, every theme has a different header.php area, so you will want to do a little investigating and trial and error until you get the code in the right place. Once you’ve got it in the right place, save the file.
Be warned, some headers just simply do NOT have the space for an ad unit. If this is the case, you can place more than one ad unit in the sidebar.
8. Sometimes it takes a few minutes for the ads to show, so do not be alarmed if your ads are showing up immediately after you hit save. You may see a yellow box where you placed the ad, that means the Google ad is installed correctly and you will be seeing ads soon.
Installing Google Ads in the Sidebar section of your website
1. Repeat steps 1-3 from above
2. You’ll then want to give your ad a name and select the size of the ad unit. For a sidebar, I would recommend either the Responsive, 336×290, or 300×250. Then click on Save & Get Code
3. Go back to your website and from your WordPress dashboard, click on Appearance -> Widgets.
3. Locate the Text widget and drag it to your Sidebar Widget Area.
4. Copy your code into the widget & press save.
5. Your sidebar ad unit should start displaying after a few minutes.
Installing Adsense in the Footer section of your website
1. Repeat steps 1-3 from above
2. Give your ad unit a name & select which size unit you would like, this will depend on how large of an area you have. Click Save & Get Code.
3. Go back to your website and from the WordPress dashboard locate the Footer widget (Appearance-> Widget->Footer widget). Locate the Text widget and drag it to the Footer widget area. Copy your code directly into the text widget and click on Save.
4. If you do NOT have a footer ad widget, then you’ll need to add the code directly to the files. Go to Appearance -> Editor-> footer.php. Like I mentioned with placing ad units in the header area, you will have to do some trial and error to get the code installed properly and in the right place. Once it is correct, save the file.
Do you know someone who would find this information helpful? Feel free to share it with them!