Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How to Properly Add Google AdSense to Your WordPress Site

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Properly Add Google AdSense to Your WordPress Site

Google AdSense is one of the most popular way to monetize your website. Did you know that you can easily add Google AdSense to your WordPress site and start making money? In this article, we will show you how to add Google AdSense in WordPress along with sharing some best practice and tips to increase your earnings.

What is Google AdSense?

Google AdSense is an advertising network run by Google that allows bloggers and website owners an opportunity to earn money by showing text, image, video, and other interactive advertisement on their websites. These ads are targeted by site content and audience.

Google AdSense is hassle free because you don’t have to deal with advertisers or worry about collecting money. Google administers and maintain relationships with the advertisers. They collect the payment, take their share, and send your share to you.

AdSense offers cost-per-click ads (CPC) which means that you earn money every time a user clicks on the ad on your website. The amount received per click varies based on multiple factors.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

Getting Started with AdSense

First thing you need to do is sign up for a Google AdSense account. If you have a Gmail account, then you can use an existing account.

Once you’ve submitted your application, you will receive an email within 6 – 8 hours telling you whether you have passed the first step of the review process. If you passed the first check, then you can log in to your AdSense account and get your ad code.

Start by clicking on the My ads tab and then click on the New ad unit button.

Google AdSense Create Ad

This will bring you to create new ad page. On this page, you need to select the Ad size, type, and style.

Adsense Ad Units

The name of the Ad is only used for internal purposes, so you can name it like “SiteName Sidebar”.

The next option is choosing the Ad Size. While Google offers a wide-variety of ad sizes, there are certain sizes that are listed under recommended because those are the most popular among advertisers. What that means is that these ads are likely to have a higher inventory thus a better payout.

The next option is to choose Ad type, we recommend having both Text & display ads.

For backup ads, you can either choose to have a blank space or fill it with your own ad. This is shown when Google cannot find an appropriate advertise (which rarely happens).

Custom Channels feature allows you to better track the ad performance based on sites. You don’t have to use it if you don’t want to.

Ad style allows you to control the display of your text based ad units. We recommend using your site’s color scheme for best results.

Once you’re done with this setup, simply click on Save and get code button. You will be prompted with a message “Ad successfully created”, and you will also see the Ad code.

Google AdSense Code

Copy your Ad code and paste it in a Notepad because you will need it in the next step.

Adding Google AdSense in WordPress

You need to determine where you want to show the ad on your website. Most commonly ads are displayed in the sidebar. You can add the Ads in your sidebar by using WordPress widgets.

Simply go to Appearance » Widgets in your WordPress admin area. Next drag & drop the Text widget to the appropriate widget area and paste your Google AdSense code in there.

AdSense in Text Widget

For better placement control and tracking, we recommend that you check out OIO Publisher or AdSanity WordPress plugin. (See: Best Ad Management WordPress solutions)

AdSense Best Practices and Frequently Asked Questions

Over the years, we’ve answered several AdSense related questions. Having used AdSense on several of our sites such as List25, we’ve learnt a whole lot about optimizing. Below are some AdSense best practices and frequently asked questions.

What’s the best AdSense Ad Size?

Although ad placement is key, we’ve found that the best sizes are 336×280 and 300×260. These ads tend to fit on most screen sizes and have the best pay rate as well.

What’s the Best AdSense Placement?

This entirely depends on your layout. The goal is to get more clicks, so you want to place your ads in a more prominent spot. We have found that ads within post content towards the top of the screen tends to get the most clicks.

Several users have asked us about adding AdSense in a floating widget because it will be very prominent. We strongly recommend against that because it is not allowed by Google Terms of Service. If you violate their TOS, then you can get banned from the program.

Can I click on my Ads?

Often beginners are tempted to click on their own ads or ask their family members to click on their ads. Please don’t do that. Google’s algorithm is very smart and knows when you’re clicking on your own ad. This can get you banned from the program.

What is Page RPM?

RPM stands for Revenue per Mille meaning revenue per 1000 impressions. This is determined by multiplying the total number of clicks and cost per click and then dividing that by the total number of pageviews.

We hope this article helped you add Google AdSense in your WordPress site. If you have any questions, then please feel free to ask us by leaving a comment below.


Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. Anish kumar says:

    Hi,
    i have a doubt .My doubt is if i am using ads in our site so google will be charged or not for ads

  2. ranjit says:

    i have website i am using wordpress.. i am waiting 2nd stage adsence approval process from last 3 month. 3rd april i got the mail behalf of google review successful pls add first add unit… i have added /// but i dont know whats going wrong… why taking too much time for 2nd stage aproval process.

  3. Austin says:

    I followed your steps to the “T” on WordPress.org using the sidebar widget. It did not work. I have a YouTube Adsense account, so I added my website/blog to AdSense as a non-host I have a few questions:

    (1) Do you have to wait six months before AdSense will consider your add.
    (2) Do you have the link so I can see if Google has my website to add to Adsense?
    (3) When I followed your instructions. nothing appears on my end to indicate that it was successful. Therefore, I waited and waited. Still nothing.
    (4) Why is your directions to add AdSense on WordPress not the same as others directions found on videos or websites? I tried the other methods. It did at least show something (empty space, box that says “Ad will go here,” etc., but no ad would appear

    Thank you in advance.

  4. Jitendra says:

    How much time to code display my ad on my website.

  5. venkanna says:

    how much time time to disply ads in website

  6. vijay says:

    Can I place ad on free theme?

  7. Jenniffer says:

    Hello,
    I bought the domain for my website in WordPress, but not the host. In order to use google ads or any type of ad, do I need a host?
    Thank you!

  8. Suji says:

    hi

    i placed my adsense code yesterday (5/7/2016) in my website using wordpress widgets, however google is sending mail that

    “You’re almost there! To get your site ready for review by our team, copy and paste the ad code found in your AdSense account onto your website”

    but i already placed adsense code in my website.. what shall i do now?

  9. karan dhingra says:

    i have done settings & placed adds through google adsense plugin….& it is showing blank space at that place….should i also place code to widgets area or adds automatically will start showing after 2 process of approval!!!??

  10. Kumarkranthy says:

    Hi Team,

    I have added the add to my site, but the add is not showing, the below is the message im able see.

    Please help!!

    From
    Kumar

  11. dymang says:

    Hey, i have example.wordpress.com is this possible to make a google adsense?

  12. Manoj Kumar Sethi says:

    Hi,

    Is it possible to run ads in wordpress.com site ?

  13. Bron says:

    Dear Team,
    After trying to fix my issue with Google support team (no reply), WordPress support forum (no help) and by my own, i’m lost now!

    I have an issue trying to fix since 2 weeks! Now i’m really tired.

    The problem is like this:
    – My account is properly connected to Google Adsense, but i can’t see any ads on my page except 1 page (category)
    – I use categories as menus, only 1 category shows the ads.
    ( I would like to send to you my site url, but i don’t know if you allow that here)

    Just to explain a little what i’ve done so far:
    1. I’ve connected my site to google adsense through Google Adsense plugin (by Google)
    2. It started to work, than 3 days later i tried to change the footer credits on my theme. After that my ads started to disappear! Strange!
    3. Tried all those option:
    – Re-install plugin,
    – Re-connect to adsense,
    – Re-install my wordpress (completely fresh),
    – Change theme,
    – Change permalink (by changing permalink it started to work again for a few hours than disappeared again);
    – Changing the site url (added www to my site url), worked for 1 day than disappeared again.
    – Manually inserted code (through widget text)

    I use this plugins:
    – Google Adsense
    – Advanced Ads
    – Google Analytics Dashboard for WP
    – Infolinks Official Plugin
    – Jetpack by WordPress.com
    -WP Super Cache (recently installed, two days ago)
    (Tried also to deactivate all plugins, no success)

    I would really appreciate your help.

    Best Regards,

    • WPBeginner Support says:

      Login to your Adsense account and manually generate an Ad code, then paste that code in your theme. If this works out, then it could mean two things. A plugin you are using, does not have a publisher ID. Check your plugin settings to make sure it uses your publisher ID with ads.

      • BRON says:

        Hi,
        Already tested that, but the ads are not showing. The ad is showing only in one page (category).
        Can you PLEASE inspect my page if you find something?

        Thank you

      • Bron says:

        Dear WPBeginner team,
        Since i’m lost on trying to fix this, can we have a privat contact and i’m ready to pay for your service, if you could fix my issue. Also i’ll give you the admin access. I don’t think it’s an Google issue because i see the ads on 1 page (category), it should be something wrong in my root site.

        I hope that my message will have your consideration!

  14. Ronnie Appiah says:

    My posts cannot link to its associate categories, when I click on any category it takes me back to homepage. I Need your help seriously

  15. sandy says:

    i am trying to figure out how to make my backup ad into my amazon.com ad and this post was no more help than google’s own help. theirs is too technical and yours didn’t even go there.

  16. Oluseye says:

    URGENT PLEASE!!!

    I followed this guide critically and i was about to save the added generated code on a text widget, but got this notification

    “A background request to WordPress was just blocked for the URL /wp-admin/admin-ajax.php. If this occurred as a result of an intentional action, you may consider whitelisting the request to allow it in the future”

    there was options to whitelist and cancel.
    Should I whitelist??

  17. siddhartha. says:

    i have free domain with WordPress did it works on my dimain.

  18. Carly says:

    What Theme do you use for your site? I’m finding that my posts just stack on top of another in a never-ending stream of blog posts. How do you stop each post and have a comment box at the bottom, just like this article on your site?

    • WPBeginner Support says:

      Try switching to a different WordPress theme by clicking on the Appearance Tab in WordPress admin area. You can also click on a post’s title to see the single post.

  19. SALMAN says:

    How to ad adsense ads into image galrry

  20. Renato Zurita says:

    Hey there, after following your steps, nothing appears while adding the code to the “Text” on the sidebar. Adsense tells me this: “In order to complete your request to show ads on your own website, you need to implement the ad code on beelucky.net. Your upgrade request can only be reviewed once your ad code has impressions on that domain.” Any help you can give me?

    • Prob Pob says:

      That means your adSense request hasn’t been approved yet ! Once, you are eligible, the google Adsense will automatically display your add. Best wishes.

  21. KEWAL says:

    Your post are very good and user friendly language.

    Blogger delete my blog which is approved by Google adsense.

    One week ago I started again with WordPress.org. My adsense account is still open with You tube. Do I can start placing adsense ads on my blog or wait for next six month as per adsense policy. Please help me.

    Thanks & Regards,
    Kewal Krishan

  22. Vanessa says:

    So I did all these steps and still have blank spots where the ads should be (in the text widget). Adsense says that I need to Upgrade to put adsense on WordPress since it isn’t a “hosted partner”. It’s saying to be approved to have it on my page I need to have it authorized, but now a message comes up saying it cannot be authorized til I get ad impressions on my page. It also says something about receiving a PIN in the mail? I’m very confused. Trying to put this on both of my wordpress pages. Thank you for any help!

  23. Byron says:

    Alright, so I posted the ad code into a text widget but I ended up with this gook on my blog:

    //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
    (adsbygoogle = window.adsbygoogle || []).push({});

    What’s the deal here?

  24. Nora says:

    I found this on WordPress Support: Advertisements, including those from third-party advertising networks like Google AdSense, OpenX, Lijit, BuySellAds, and Vibrant Media are not allowed on WordPress.com.

    So how can I do it?

  25. M says:

    I’m using wordpress.com. I’ve put the code in the text field, but everytime I save it, the code is automatically altered. As a result, I only have a string of codes on my blog. How do I fix this?

  26. Akiv says:

    This is my site. Its a WordPress theme. In its blogs, i want to show ads next to the image or wrapped by text content. Which i am not able to do. I am not liking where i am placing ads atm. Can anybody help?

  27. anand says:

    i had already placed ad code in my widget are..still there is nothing showing….also not blank ad…and google says…”In order to complete your request to show ads on your own website, you need to implement the ad code on. Your upgrade request can only be reviewed once your ad code has impressions on that domain.”
    What should i have to do?
    Thanks in advance

  28. sudipto says:

    In some days I have face a problem. in my blog i put here google adsense but sometime the adds are not sown….

  29. Buzz says:

    But how much money can you get per, say, 1,000 views? Is it solely based on the number of clicks people give you?

  30. Chris Franklin says:

    Thanks so much! You made it SO easy to ad this code.. I couldn’t figure it out without you!

  31. Kerry says:

    I’m just getting the text in my footer (it keeps automatically changing when I press save I don’t know if that’s anything to do with it?) but the ad isnt appearing.

    Help!

    Thanks
    Kerry

  32. Anubhav says:

    Great article Editor but i have an unusual issue . i created an adsense account today and it said that you have to put code on your site . i placed it , ad displayed for some time and then disappeared , now it is showing only blank space and on the adsense account showing adunit as active .Did you came across such issue ?

    How can i fix it ?

  33. Prince Jain says:

    Hi,

    First Step is approved for my wordpress news site. To place ads, I added Google Adsense official plugin and set the ads location.

    Do I still need to add the code on my wordpress site to complete the approval process?

  34. Yungextt says:

    what type of advert do i get paid when someone just click on the Ad?
    Because some Ad might require for people to sign up,,buy a product before you get paid

  35. tamanna says:

    will try it out now

  36. Harpreet Singh says:

    Is it necessary to place Adsense code in each & every page. And whenever we post (new post) so there we also have to repeat this task again & again. Just want to clear on this funda? Please help me??

  37. Akarsh P K says:

    I am unable to add google adsence ads to my site. I tired the above steps and could not fetch any results. Please help.

  38. Amit kumar says:

    very very helpfull article sir,,,
    i think ad injection plugin is best for adsense management

  39. Jaff says:

    Thank you!

  40. Hemant says:

    Hello,
    i have lot of trouble with my adsense account but there is no way to contact google.
    First will you please tell me exactly how to add adsense code to wordpress blog in approval process ?

  41. kris baker says:

    hi. do I need the premium version of wordpress or the business version in order to add google adsense????

  42. Soul of Sneakers says:

    Currently my blog is under free sub domain in wordpress…

    Can i put ads in it or do i need to have a custom domain? means go for premium account?

  43. Maia says:

    Hi, I’m using wordpress.com, can I add adsense to my blog? I’m already approved but don’t know how to add it on my wordpress.

    • Miguel says:

      From what I learned you go to appearence, widget, then text and input your code in there and your able to drag it to where you want it like content bar or side bar etc. But my ad is a yellow block. I dont know what went wrong.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.