How to add AdSense to WordPress

AdSense Ad Optimization
Last updated: August 5, 2020 | by Kean Graham
How to add AdSense to WordPress

This post was most recently updated on August 5th, 2020

In this post, we’d like to show those new to ad monetization how to add AdSense to their WordPress websites. However, before we do that, what is AdSense? Google AdSense is the most popular way to monetize your site through display ads. It’s Google’s Ad network that millions of publishers over the world use.

Let’s take a closer look at the steps involved:

Step 1 – Google AdSense signup and account activation

  • First things first, you need to sign up for a Google AdSense account. If you have a Gmail account, you can use it to log in. Go to to get started.
  • Wait for Google to review your entire site and activate your account. For some websites, the activation process can take a day, and for others, it can take up to a couple of weeks.
  • If you passed, then you can log in to your AdSense account to be able to get your ad code.
  • We’ve outlined the AdSense account sign up process here:

Step 2 – Creating a Google AdSense ad unit

Start by clicking on the Ads tab and then click on the Ad units button. This will bring you to create a new ad screen, and you will be asked to choose an ad type. You can select from Display Ads (recommended), In-feed ads, In-article ads, etc.

AdSense ads

Next, you need to provide a name for this ad unit and select the ad type as per Google “they are now phasing out text-only and display-only ad units to improve the user experience further, and to fully reflect the pool of ads we have in the market. As a result, the “Text ads only” and “Display ads only” ad units in your account have been renamed to “Display ads” and will be updated to serve all ad types.”

If you want to keep using text-only ad units, you can create a native In-feed ad unit, choose the manual style option, and the “Text only” template.

AdSense ad type

You can name the ad unit anything like “DomainName_Sidebar” for internal use.

Next, for Ad size, Google is making it easier for publishers by setting all newly created ad units to responsive by default. This enables ads to adjust to different screen sizes on mobile and desktop for increased performance and flexibility. If you need further customization, you’ll still be able to create fixed-sized ad units.

responsive ad sizes

Get the code required for the further setup. Next, you need to place the ad within your site.

AdSense code

Step 3 – Adding AdSense unit to your website

Log into your WordPress admin dashboard and go to Appearance > Widget

WordPress widget

Select the Text widget in the list of available widgets and drag & drop it into the required widget area, paste the script from Google AdSense account into the content of the text widget. Save the changes.

WordPress text widget

Open the site to check the result. Google AdSense should show up in the selected widget area.


Adding AdSense to your site and getting started with ads are as easy as that! Do you need help optimizing your ads and maximizing your ad revenue? MonetizeMore can help! Our team of ad ops experts can help set up, manage, and optimize your ads so that you earn the most ad revenue possible! Sign up to MonetizeMore now!

Ad Ops Tips & Guides, Industry News, Latest Tech and Success Stories - right in your inbox.

We are committed to protecting you Privacy Data

Here’s the course that 300+ pubs used to scale their ad revenue.

Enroll today

Book Banner

"Working with MonetizeMore has been a transformative experience as they helped to increase my overall revenues by over 180%"


Paid to Publishers


Ad Requests Monthly


Happy Publishers

Recommended Reading

March 22, 2023

The Ups and Downs of ChatGPT for Publishers| Maximize Your Revenue…But at What Cost?

Read More
Traffic Cop
Last updated: March 22, 2023

The High Cost of Fake Traffic: $143 Billion Gone

Read More
DoubleClick For Publishers / Google Ad Manager Ad Optimization
March 20, 2023

Google Ad Manager Advanced Troubleshooting Guide for Display Ads

Read More

Trusted by 1,500+ publishers worldwide

10X your ad revenue with our award-winning solutions.

Let's Talk

Ready to 10X your ad revenue with the #1 ad management partner?

Start Now