integrate AdSense with WordPress

If you want to make money from your website, you’ve probably heard of Google AdSense. It’s one of the most popular advertising platforms online, it’s used by over 12 million active sites, and it’s an easy way to monetize your website. But to get the most out of it, you’ll need to learn how to integrate AdSense with WordPress.

Fortunately, this is easy to do. You’ll simply have to sign up for the service, wait to be approved, and then start placing ads on your site. WordPress provides a simple way to insert AdSense ads out of the box, but you can also find plugins that will help you optimize their placement and appearance.

In this post, we’ll introduce Google AdSense and talk about what makes it so useful. Then, we’ll show you how to integrate AdSense with WordPress in three short steps. Let’s take a look!

An introduction to Google AdSense

The Google AdSense home page.

If you are interested in earning a little extra revenue, Google AdSense is one of the first solutions to check out. AdSense enables you to easily insert ads on your website – you just include a small code snippet on your site and Google will handle the rest. Your visitors will see relevant ads and you’ll get paid based on how many people view and/or click on your ads.

This solution is great for beginners. It’s easy to get started and integrates with just about any platform – including WordPress. To use it, you’ll just need to meet a few basic requirements, such as having an active site that complies with Google’s program policies.

Of course, there are alternatives to Google AdSense, and it’s worth taking a look at those solutions too. But most of the time, AdSense is a great first step in monetizing your website.

How to integrate AdSense with WordPress (in three steps)

Signing up for the AdSense program and placing ads on your site is a pretty simple process. Let’s walk through it together!

Step 1: Sign up for Google AdSense

To integrate AdSense with WordPress, you’ll first need two things:

  • A website
  • A Google account

With those in hand, you can visit the website and click on the option to Sign up now.

You’ll be prompted to choose a Google account to connect to the program. Then, you’ll be taken to a simple sign-up form:

The sign-up form for Google AdSense.

Here, you need to provide the URL for your website, as well as your home country. You can also choose whether you want the program to send you customized suggestions. After this, check the Terms and Conditions box and select Create Account.

It will take up to three days for your request to be approved and then you’ll get an email with instructions on how to activate your account. When that’s done, you’re ready to start creating ads.

Step 2: Create your first ad

To create ads for your site, you’ll need to be logged into your AdSense account. Then:

  • Navigate to My ads
  • Select the Content option
  • Click on +New ad unit

At this point, you’ll need a name for your ad. Pick something descriptive and easy to identify. You can then set its dimensions under Ad size. To be safe, stick with the Recommended sizes. The Responsive option is usually a good starting point, though you can always experiment later on:

Ad options within Google AdSense.

Next, you can choose what type of ads you’d like to use. It’s advisable to pick the Text and display ads option, so you get access to as many ads as possible. However, you can stick to either text or display ads alone if one or the other feels right for your website.

There are a few optional settings here, which you can use to tweak your ads further if you’d like. Finally, select what you’d like to see displayed if Google can’t find any relevant ads from the If no ads available drop-down.

additional adsense options

Then, click on Save and get code. This will save your ad settings and provide you with an ad code. Copy this and save it somewhere safe, since you’ll need it for the next step:

Use this code to integrate AdSense with WordPress

Step 3: Place your ad on your website with Custom HTML widget

It’s finally time to integrate AdSense with WordPress. Just log into your WordPress dashboard, and navigate to Appearance > Widgets. Add a new Custom HTML widget by dragging one into your site’s widget area:

After that, you just need to paste in the ad code and save the widget:

custom html widget for adsense ad

The code will pull all relevant information from your account and start displaying ads of the appropriate size and type. Make sure to check out what your ad looks like on the front end.

That’s all you need to do to integrate AdSense with WordPress.

However, for best results, there are a few extra steps that you might want to take. For one, you can apply some best practices to optimize your ads and earn more revenue.

Beyond that, if you want more control over where your ads appear, you should consider using a dedicated WordPress AdSense plugin.

Optional: Optimize your ads using plugins

Placing your ads in your site’s widget areas can be effective, but doesn’t give you a lot of control. This is especially true if you’re using a theme with limited options. Fortunately, you can find a plugin that will enable you to customize your AdSense ads further.

One popular option is Ad Inserter:

This plugin lets you customize where your ads will be placed – such as above or below the header, before or after specific content, and so on. While it’s not the most beginner friendly option, you can use this plugin to produce nearly any result you’d like.

For a simpler approach, there’s WP QUADS:

This is a more beginner-friendly option that requires less technical know-how, but is still very flexible. You can assign ad positions dynamically, insert ads within posts, and display up to ten ads on one page.

Either of these plugins is a strong choice. The more time and care you put into how your ads are placed and displayed, the better your chances will be of increasing your income. Therefore, it’s worth spending a little extra time to get them just right.


Most sites need to monetize to sustain themselves, and yours is likely no different. However, figuring out how to create a decent income stream can be challenging, to say the least. Google AdSense is a great option – a simple tool that enables you to create ads, place them on your site, and make a little cash (or possibly a lot) with almost no effort required.

What’s more, it’s surprisingly easy to integrate AdSense with WordPress. Just follow these steps:

  1. Sign up for Google AdSense.
  2. Create your first ad.
  3. Place your ad on your website.
  4. Optionally, optimize your ads using plugins.
Do you have any questions about how to integrate AdSense with WordPress effectively? Ask away in the comments section below!
Free guide

5 Essential Tips to Speed Up
Your WordPress Site

Reduce your loading time by even 50-80%
just by following simple tips.

Download free guide