How to Add Google Adsense to Your Niche WordPress Blogs

By Spencer Haws |

I often get asked how to add Google Adsense to a WordPress Blog or what plugin I use to perform the task.   Rather than trying to explain in words how I add Adsense units to my niche websites, I thought it would be easier with a video.   So, in this 10 minute video I tackle a few different ways to add advertisements to a WordPress site.

2017 Update:  I now use a free ad tester called Ezoic which makes testing different Adsense placements very simple. Click here to try it out. 

First, I show how to insert a Link Unit ad just under a navigation bar.  This by far the most difficult task of the 3 and it does take a little bit of know-how to get this type of unit to show up where you want it.  The difficulty is complicated because every single theme is slightly different – so you will never know exactly where to place your code.  However, in this video I show some principles that you can follow to insert your link unit ads under the navigation bar.

Primarily you need to be able to go into the “editor” on WordPress and typically find the “header.php” file.  If you insert your ads at the end of this file, then the link unit will show up just below the header on all your pages.  This works in MOST cases but not all.  In some cases you may need to insert ads in a couple of different locations which may include the “Maid Index Page”, “Single Post” file, or the “Single Page” file.  However, in the video I show how you can test out different locations to make sure it works.

Want To Build Smart & Relevant Internal Links...Quickly?

NichePursuits Rating

Link Whisper is a revolutionary tool that makes internal linking much faster, easier, and more effective.  It makes it simple to boost your site’s authority in the eyes of Google. You can use Link Whisper to:

  • Bring out your orphaned content that isn’t ranking
  • Create smart, relevant, and fast internal links
  • Simple yet effective internal links reporting: what has lots of links and what pages need more links? 

Click here to revolutionize your site’s way of doing internal links

Build better internal links with Link Whisper

Second, I show how to use widgets to place Adsense ads in your sidebar.  This fairly basic and straightforward.

Finally, I show how I use the “Quick Adsense” plugin to add Google Adsense within the content of posts.  I have used other plugins in the past, but this is the one that I am currently using.  If you are using a better plugin – please share it in the comments below!

Overall, I truly hope that you find this video tutorial helpful!  Let me know your thoughts or questions below.

Niche Business Ideas | 39 comments

By Spencer Haws

Spencer Haws is the founder of After getting a degree in Business Finance from BYU (2002) and an MBA from ASU (2007) he worked for 8 years in Business Banking and Finance at both Merril Lynch and Wells Fargo Bank.

While consulting with other small business owners as a business banker, Spencer finally had the desire to start his own business. He successfully built a portfolio of niche sites using SEO and online marketing that allowed him to quit his job in 2011. Since then he's been involved in dozens of online business ventures including: creating and exiting Long Tail Pro, running an Amazon FBA business for over 3 years and selling that business, founding, and co-founding You can learn more about Spencer here.

You may also like

View all




I’ve used the easy adsense Pro.
Works in a similar way but you can tweak it a bit more.



symptomes grossesse

I am using thesis theme so thesis hook plugin helps me lot, wp-insert also very nice


Thx for the clear explanation. I played around with some of the ad types and found one that fit perfectly on my site.



Steve Roy

Since I found your site earlier this week, I’ve really enjoyed what I’ve read. I love your business model and am looking forward to trying my hand at building a few niche sites.

I have little idea of how this all works, so thanks for the great content. This post is perfect as well because I’ve never used AdSense and had no idea how to set it up.



Thanks Steve! Glad you found this useful…



With Adsense, the idea is getting paid for clicks that ultimately lead the visitor off your site to another. How would you structure a site combining an affiliate product (ie: LTP) and Adsense ads? I want the visitor to remain on my site for the affiliate product info but also generate revenue from Adsense. I suppose you could separate affiliate product vs. Adsense by site pages, ie: not placing Adsense on the affiliate product page(s). Does this make sense? Any suggestions?



I have found that having a killer first page for affiliate marking with out any other links or adds, works fine.

What you can do is create alternative pages for adsense, and other add units.

Im not sure If I should post a example, but I have found a couple sites, I really liked and basically captured their style.

This seems to work well with low competition products.

As with any page you create it is about conversions.


Perhaps a main page with the affiliate offer, and then other pages with adsense.

Joe Magnotti | AdSense Flippers


Great video! I would suggest your readers setup Ad Units and Custom Channels in a coherent way. Make sure they relate and the names make sense for tracking purposes. If you have lots of sites, random naming of Ad Units can really drive you crazy!




Would you mind sharing some information how to organize the ad units and channels for that many sites?

What I’m confused is that if the same ad unit is used by multiple sites, would the different custom channels (say per site) smart enough to segment the traffic within the attached same ad unit?

Thank you!


I’m using wordpress plugins on most of my sites. Also I know programming so it’s not difficult to me.

I was getting lots of queries on how to put adsense to right or left corner of post content without using any plugin. So I wrote one posts here:
and I know it helps hundreds of my readers to put highest CPC ad unit i.e 250×250 floating left or right in your blog post..



whydowork adsense is a plugin which i use currently… it works good and does the job..

I will check out quick adsense… and yes, i agree that adding link units on the header is the most difficult by far


Some great tips Spencer.

I’ve just added the link units just below my navigation bar to my group of niche sites I’ve just recently developed.



Thanks for this video, Spencer. Sometimes it’s the seemingly small technical details that can cause ‘blockages’ in progressing your business online, particularly if – like me – you’re not a hard core techo!
Having easy to follow videos like this are invaluable!
Cheers, Kaz


Great…thanks for the feedback Kaz!


Great video Spencer, thanks. I’m new to this whole thing but when placing Adsense within a post is it more effective to have text based ads rather than image based ones?


It’s these little things that stop a lot of people persuing an online income. You edit that php file like it’s nothing, but you should see the reaction most poeple have when you open such a file in a terminal (in Vim, with syntax highlighting). “OMG you must be some computer geek” is the least of my problems :p

Doing these things on a public computer even got me kicked out once. But that’s enough about me.

I just stumbled accross your blog and well, it’s rekindled my interest in the elusive online income. You’re now officially to blame that I’ve taken up the plan to build at least 10 niche sites, 2 of which before the end of the year. The modest income goal is $100 a month by the fourth of July.

Thanks, not only for this blogpost, but for this blog as well!

*clicks on RSS feed button*

Gr, Christiaan


I want to second what Kaz said – it’s the small tech stuff that slows me down. Thanks for the video.

Thanks for the site as well. No pun intended, but you have a nice “low key” manner of presenting things.


Thanks Spencer,

As a newbie to WordPress and Blogging I found the information clear and easy to understand.

Very much appreciated.



Hi – Thanks for the video – very clear ! I find WordPress a real pain, I don’t understand why people like it so much but maybe I will now take the plunge and stick some Adsense on my site.

Sheila Smart Photography


You are using my image of the orang utan as your avatar. Please ask me first before doing so!

Chris Miller

Interesting that your adsense account is serving up ads related to your searched. You have that turned on in your account? If so, I wonder how much better your sites might do if they were serving up only ads that are related to your sites?


Thanks Spencer for the update.


I just read on one of the Adsense pages that you can use the same ad unit code on many sites, e.g. you can set up a 160×600 skyscraper for and use that same code for

I’ve been setting up separate ad units for each domain and labeling them ‘sidebar’ ‘post top’ etc. thinking that it will be better for tracking which sites and which ad units are performing best.

Am I correct or am I wasting time?


Jenny Nassour

Hey Spencer – when inserting the code within the header template, this makes the ads appear on all the pages on the site (including contact and privacy policy). Is there a way to disable it from appearing on those non-content pages after putting the code in the header (which is against the TOS to show ads on non-content pages)? Or would it be ok to “exclude” those pages so they don’t show at all with ads on them?


Hmmm… tough question! Im sure there is a way to not show the header links on those pages, but I have always just left them there. The header links are not within the content, so I’m hoping that is not against TOS. That’s the way I have always done it though.


I thought in the past you have said that you use the WhyDoWork Adsense plugin? Do you prefer the Quick Adsense plugin over that one. Thanks.


Hi again Spencer,
Having hunted through the site, I’ve found a few different options for adsense plugins. For those of us who are still quite new to the adsense model, its reassuring to know we are following along with your latest methods…. which do you currently use? When we are looking for a good adsense plugin in future, what should we be looking for – is it for easy ad placement, the safety features such as not letting us click on our own links by mistake, etc?
Thanks 🙂


I use the “Quick Adsense” plugin currently.


When placing the code in the header.php. How does it know what type of ads to pull? Ads usually are oriented to the content of the page.



Actually I’m now seeing that it does pull info from the database to know which ads to show. Sorry about that.


just started with adsense, made 61 cents on 1st 19 clicks but nothing since so will try your strategies hope it works. like reading your blogs spencer cheers

Zahid Al

hey admin. why you don’t add ads in this website ?

online reputation management

I only seen video of Google ad-sense then i no need to read entire post because of in this video fantastic explain of how to put Google ad sense code.. Thanks for sharing…


Hello Spencer,

Thank you for providing this helpful tutorial. I am new to wordpress 🙂 I would like to start adding adsense on my blog in future but I would like to know how many adsense are we allowed to add on our blog? I have heard that we are only allowed to add 3 adsense per blog otherwise if we add more than that google might disable your adsense account, is this correct? I hope you can clarify my questions. Thanks.

kerplunc gaming promo code minecraft

Hi there, I read your site on a regular basis. Thanks for the info again.

Recent Posts

View all