How to add AdSense to WordPress

How to add AdSense to WordPress

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!

Kean Graham

CEO and Founder at MonetizeMore

Kean is the resident expert in Ad Optimization covering areas like AdSense Optimization, DFP Management, and third-party ad network partnerships. Kean believes in the supremacy of direct publisher deals and holistic optimization as keys to effective and consistent ad revenue increases.

Get our latest ad optimization tips delivered to your inbox

Fill out my online form.

Submit a Comment

Your email address will not be published. Required fields are marked *