create your own

Add Google AdSense to Your WordPress Blog

89
rate or flag this page

By shibashake


If you want to use Google AdSense with your WordPress blog, there are two things you need to add - Google AdSense advertisement code, and a privacy policy link.

You can easily add both into your WordPress blog by using the text widgets that come with WordPress 2.2 or later. If you have an older WordPress release, you can enable widgets by installing the widgets plugin.

To use these widgets, you must install a WordPress theme that is widget-ready, i.e. a WordPress theme that has predefined widget areas. It is best to choose a WordPress theme that is easily customizable, and has several widget-ready areas where you can insert your Google AdSense advertisements, or other useful widget functions.

Visit the Shiba WordPress theme homepage to see an example of a widget-ready WordPress theme with Google AdSense advertisements, and a privacy policy.

Note - WordPress.com does not allow advertisements on the blogs that are hosted on their site. To monetize your WordPress blog, you must host it elsewhere.

Screen-shot of the Shiba WordPress theme which is widget-ready in the header, footer, and sidebar areas.
Screen-shot of the Shiba WordPress theme which is widget-ready in the header, footer, and sidebar areas.


How to Add Google AdSense Advertisements

  1. Log into your Google AdSense account. If you do not have a Google AdSense account, here are some tips on how to get started with Google AdSense.
  2. Once you are logged in, click on the AdSense Setup tab on top of your screen. Then select Get Ads to create new advertisements, or Manage Ads to access previous advertisements you have created.
  3. After you finish creating an advertisement, Google AdSense will provide you with the code for displaying that advertisement on your blog or web-page. You can also access that code at a later date by going into AdSense Setup >> Manage Ads, and clicking on the Code link to the right of your advertisement unit.
  4. Open another browser window and log into your WordPress blog.
  5. Click on the Appearance menu on the left of your WordPress dashboard, and then select the Widgets option.


Screen-shot of the Widgets menu in your WordPress dashboard.
Screen-shot of the Widgets menu in your WordPress dashboard.

The middle column of the screen shows all the available widgets, and the right column of the screen shows all the available widget areas for your current WordPress theme. If your current theme does not support widgets, then WordPress will show the following message when you access the Widgets menu option.

The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions. ~~ [From WordPress Dashboard]

Screen shown when the WordPress theme you are using is not widget-ready.
Screen shown when the WordPress theme you are using is not widget-ready.

If there is no Widget option in your WordPress dashboard then the WordPress release you are using does not come with widget plugin support, and you will need to install the WordPress widgets plugin manually.

Add Google AdSense Code into a WordPress Text Widget

Now you are ready to add your Google AdSense code into your WordPress blog.

6. Click on the widget area in the right column where you want to insert your Google AdSense advertisement to open it up.

7. Drag a Text Widget box from the middle column and drop it in the widget area on the right column.


8. Click on the right corner of the Text widget to open it.

9. Copy your Google AdSense code and paste it into the Text widget area.

10. Click on the Save button at the bottom right of the Text widget to save your Google AdSense code.

11. Refresh your WordPress blog and your Google AdSense advertisement should now be displayed in the widget area that you just edited.

12. You can add as many Text widgets as you want to your WordPress blog but remember that Google AdSense only allows 3 advertisement units per web-page.

How to Add a Privacy Policy to Your WordPress Blog

Google AdSense now requires that you add a privacy policy to all your pages that display Google AdSense advertisements. This privacy policy must include a cookie disclosure notice.

AdSense publishers must have and abide by a privacy policy that discloses that third parties may be placing and reading cookies on your users' browsers, or using web beacons to collect information as a result of ad serving on your website. ~~ [Excerpt from Google AdSense Program Policies]

  1. Create a privacy policy page in your WordPress blog. For more information on what needs to be included in your privacy policy, refer to the Google Advertising Cookie and Privacy Policies page.
  2. Drag and drop a new Text widget into the area where you want your privacy policy link to appear.
  3. Add your privacy policy link to your Text widget. Your privacy policy link code may look something like this -
<a href="[Your Privacy Policy HTML link]">Privacy Policy</a>

Failure to add a privacy policy may lead to rejection of your Google AdSense account application or to the disruption of your current Google AdSense account.

Do you have Google AdSense in your WordPress blog?

  • Most definitely!
  • No, but I will add them with this simple technique.
  • No. I don't like having ads in my blogs.
See results without voting


If you have any questions about how to add Google AdSense advertisements into your WordPress blog, feel free to ask them in the comments section below.


Join HubPages and use it to help drive traffic to your home blog or website.

WordPress Theme Blog

  • Blog Warrior WordPress Theme Images

    The Blog Warrior … She will battle for blog traffic and protect you from boring blog graphics and headers. The blog warrior was created using Poser and 3D-models from Daz Studio. This page... - 7 hours ago

  • White Wedding WordPress Theme Images

    This is my second set of wedding themed images. The previous wedding theme focused just on the bride and bridal gown, so here I wanted to include some pictures of the groom, as well as present some... - 6 days ago

  • Carrara 7 – Head Modeling for Beginners

    I have been using Poser for the last year to generate 3D images for my articles and website. Recently however, I wanted to create some anime characters, but could not find the right face on DAZ or... - 9 days ago

RSS for comments on this Hub

dohn121 profile image

dohn121  says:
3 months ago

You know I'm saving/bookmarking this! Once I get started on Wordpress (which I will) I would like you evaluate it! Thanks, Shibashake!

Nancy's Niche profile image

Nancy's Niche  says:
3 months ago

Excellent article! Google Adsense continues to confuse me! I will bookmark this page and look forward to one explaining what code to use for content, etc... :-(

wandererh profile image

wandererh  says:
3 months ago

Around the middle of the hub, you said:

"If there is no Widget option in your WordPress dashboard then the WordPress release you are using does come with widget plugin support, and you will need to install the WordPress widgets plugin manually."

I think you meant to say "does not". And thanks for this, I always modify the php files to put in Adsense and this should make my life simpler. :)

shibashake profile image

shibashake  says:
3 months ago

Hi dohn, I am really having some good fun with WordPress and web design. When I first put up my website, I really had no clue about any of this stuff, but once I started getting into it, it was difficult to stop :) Have fun!

shibashake profile image

shibashake  says:
3 months ago

Hi Nancy. Thanks for dropping by. I am not sure I totally understand your question. Do you mean how to create Google AdSense ads? Will try to help if I can :)

shibashake profile image

shibashake  says:
3 months ago

Thanks wandererh. Yeah, you get more flexibility with PHP editing because you can really place the ads wherever you want. But as you say, doing PHP makes things a lot more complex.

Are you using child themes? It is a great way to preserve your CSS and PHP modifications when you do theme updates. Good stuff.

BTW - Thanks for pointing out the error.

wandererh profile image

wandererh  says:
3 months ago

Sad to say, I didn't even know that there are such things as child themes. :( But I do the idea behind it. Do you have a hub about those?

shibashake profile image

shibashake  says:
3 months ago

Heh- I am writing one. Creating a child theme is pretty straight-forward, and there are many blog posts about how to do that.

There is a lot less documentation on how to use child themes to achieve common tasks, so that will be what I will focus on.

frogdropping profile image

frogdropping  says:
3 months ago

Nope. I didn't think I'd left a comment. I don't know why I didn't. I sat and read through this after you first published it. I remember thinking 'clever she is. very clever'.

I'm sorry Shiba. Here now and commenting away.

This is a fab article Shiba (as always ) and I get it but I still want you to do it for me. Because you're better at it and I just can't absorb things my brain can't handle :)

shibashake profile image

shibashake  says:
3 months ago

lol - Kevin can do it. I hear he is a whiz with WordPress. Btw how is Kevin? I haven't heard much about him lately - shame on you! We dragonspawns want him back!

frogdropping profile image

frogdropping  says:
3 months ago

Shiba - I wrote another, just published away from my normal profile. I'll go get you the link :)

frogdropping profile image

frogdropping  says:
3 months ago

Ok back. Got it :)

http://hubpages.com/hub/Fire-Dragon

Happy reading, when you get round to it.

Chris Crow profile image

Chris Crow  says:
3 months ago

I have been using the wordpress plugin called WhyDoWork Adsense for a couple years now and it's worked great for me. It allows you to put Adsense code (or any other ad code from other networks) into your posts.

BkCreative profile image

BkCreative  says:
3 months ago

This is so timely - exactly what I need.

I just started a wordpress blog, I like the appearance - and didn't know how to use AdSense. I will work my way through your hub when I add it.

I'll test what hubber Chris Crow (here) is suggesting!

Thanks for the step by step information.

shibashake profile image

shibashake  says:
3 months ago

Thanks Chris for pointing us to that WordPress plugin.

Hello BkCreative,

Yeah drop by and let us know what works out well for you. I really like the widgets because of their flexibility (you can do AdSense and much more), but a focused plugin like the one Chris suggested may be easier to use. In any case, WordPress is a great blog platform.

grandnag profile image

grandnag  says:
3 months ago

Nice hub. Clear information for wordpress bloggers. thanks.

Good Job!!!

Skydweller profile image

Skydweller  says:
3 months ago

hey bud... those are all preliminary things.... can u suggest how can i add google adsense to wordpress.com blogs?

shibashake profile image

shibashake  says:
3 months ago

WordPress.com does not allow you to show ads. It is their site, and to use their site, we must follow their policies.

You will need to host your own WordPress blog if you want to add ads.

drking  says:
3 months ago

That virtual theme looks nice from the pics. Gonna have to check it out.

A lot of themes out there offer adsense built in. Some of my favorites are put out by doshdosh. They're ugly but good for adsense revenue.

shibashake profile image

shibashake  says:
3 months ago

Hi drking,

Yeah good point with the AdSense-ready themes. I never used them because I wanted more control over my ad-placements.

But you are definitely right - they do offer a fast and easy way to get AdSense into your blogs.

If you have any comments on the theme let me know. It will help me to improve it. Thanks!

rumbling profile image

rumbling  says:
3 months ago

Although adding Adsense using widgets is easy according to my experience highest performing Adsense blocks are the ad blocks added inside the posts which needs a bit of PHP and HTML knowledge.

Duchess OBlunt profile image

Duchess OBlunt  says:
2 months ago

Once again, great information. Another one to bookmark and pass on!

Good work.

EWealthGuide profile image

EWealthGuide  says:
6 weeks ago

Good info, but that's why I use blogger, just seems easier :)

shibashake profile image

shibashake  says:
6 weeks ago

You are definitely right, Blogger is easier, but there is only so much you can do with Blogger. With WordPress, you can pretty much do anything you want. I really enjoy the freedom you get with WordPress.

Always a trade-off in computer software - functionality vs. ease of use.

SmileySis  says:
10 days ago

I haven't been able to get the html to work in the text box. It keeps disappearing after I hit the save button on the text box. What's happening? Also, how do you get the wordpress plugin WhyDoWork AdSense? Is it from AdSense or Wordpress and how do you attain it? Thanks!

shibashake profile image

shibashake  says:
9 days ago

"It keeps disappearing after I hit the save button on the text box."

That is strange. Try unselecting it first before clicking on the Save button. If that doesn't work, Just try putting plain text in, e.g. "Test" and see if that works.

Re WhyDoWork AdSense - The download site comes up as the first entry on Google Search.

http://www.google.com/search?hl=en&q=WhyDoWork+AdS

As far as I can tell the plugin is not from AdSense or WordPress but from a third party. Since WordPress is open source, there are many people who write plugins for it.

shibashake profile image

shibashake  says:
7 days ago

In addition, if you are on WordPress.com, they do not allow you to show ads on your blogs.

You can only do ads on self-hosted WordPress blogs.

ABTEODORO profile image

ABTEODORO  says:
3 days ago

Interesting article for a newbie like me.

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

Google AdSense in the News

  • Google Ignoring Its Own Policy on Desktop AdSense?WebProNews2 days ago

    It has been discovered that Google is now showing AdSense ads inside Google Earth. While it is not that surprising to see Google putting ads on another one of its properties, it has raised a few eyebrows, given that Google Earth is a desktop application. Google actually states in its policy that it doesn't allow developers to use AdSense ads in their desktop apps, but it appears that Google is ...

  • Google AdSense Bug Showing Broken HTML Characters In AdsSearch Engine Land2 days ago

    I reported at the Search Engine Roundtable that Google AdSense is displaying ads with weird characters in the titles and ad descriptions. The characters seem to be broken HTML entities of some sort, where the HTML is not escaping properly.

  • Google AdSense Bug Displaying Weird Characters in AdsSearch Engine Roundtable2 days ago

    There are many reports at the Google AdSense Help forum with publishers complaining that Google is displaying weird characters on their ads. Here is a picture of one: Here is another picture, this one is from my personal blog: Notice the ad at the top right showing weird characters. Google has confirmed the bug in those threads and said: We're aware of the issue and we're looking into it ...

working