How to Add Google Adsense to WordPress Website?

Last Updated on 1st October 2023 by Ajmer Singh

Do you want to know “How to add Google Adsense to WordPress Website”?

Setting up AdSense ads on your WordPress site can be a simple process, but it requires careful planning and execution to ensure optimal results.

In this guide, I’ll cover everything you need to know about setting up AdSense ads on your WordPress site.

My Blogging Picks of 2023
Product Company Discount/Offer
Domain 80-85% Off
Hosting Code - AJMER20 & 3 Days Free Trial
Internal Links Plugin Code - AJMER15
Theme Code - AJMER15
SEO Tool 14 Days Free Trial
Affiliate Plugin 25% Off

AdSense Ads and WordPress

Google AdSense Ads and WordPress

AdSense is one of the most popular advertising networks for website owners who want to monetize their content.

It allows you to display targeted ads on your website and earn money whenever a visitor clicks on an ad.

WordPress, on the other hand, is one of the most popular content management systems for building websites.

It’s easy to use, customizable and has a large community of users and developers.

When you combine AdSense and WordPress, you get a powerful tool for earning passive income from your website.

However, before you start adding AdSense ads to your WordPress site, it’s important to understand how they work and how to use them effectively.

AdSense ads are contextual ads, which means they are targeted to the content of your website.

For example, if you have a blog about cooking, AdSense will display ads related to cooking, such as cookware, recipe books, and food delivery services.

So that the ads are relevant to your audience and more likely to be clicked on.

Types of ads in Google Adsense

Types of ads in Google Adsense

AdSense offers different types of ads that you can use on your website, including auto ads and manual ads.

Auto ads is a feature from AdSense that uses machine learning to automatically place ads on your website in the best locations.

When you use auto ads, all you have to do is put one piece of code on your website, and AdSense will handle everything else for you.

Auto ads work by analyzing the content of your website, visitor behaviour, and other factors to determine the best ad placement.

So that the ads can be placed in different locations on different pages of your website, depending on what AdSense determines will perform best.

Auto ads can be a great option if you don’t have a lot of time or technical expertise to manually place ads on your website.

Manual ads, on the other hand, give you more control over the placement and appearance of your ads.

When you use manual ads, you can choose the exact location, ad format, size, and other specifics for where you want an ad to appear on your website.

To use manual ads, you’ll need to create ad units within your AdSense account and then copy and paste the ad code into the appropriate sections of your website.

For example, you might create a 300×250 display ad and insert it into the sidebar of your website.

Manual ads can be more time-consuming and require more technical expertise than auto ads, but they give you more control over your ad strategy.

Let’s move on to the steps to add Google Adsense to WordPress.

Steps to add Google Adsense to WordPress

Login to your AdSense account and click on Ads.

1. By Site (Auto Ads)

add adsense auto ads to wordpress

Enable auto ads.

Before adding Google AdSense auto ads to WordPress, make sure to check the Auto ads settings.

auto ads settings

overlay formats

in page formats

2. By Ad Unit

Display Ads

add adsense display ads to wordpress

Display ads are graphical advertisements that appear on websites within designated ad spaces.

They can take various forms, such as banners, images, or rich media ads.

In-feed Ads

add adsense in feed ads to wordpress

In-feed ads are native advertisements that blend seamlessly with the content in which they are displayed.

These ads often include a headline, description, and an image or video component to attract users’ attention without disrupting their browsing experience.

In-article Ads

add adsense in article ads to wordpress

In-article ads, also known as native in-article ads, are advertisements that appear within the body of an article or webpage.

These ads are designed to mimic the style and format of the surrounding editorial content, making them less obtrusive and more engaging for users.

They can include images, videos, or text-based content.

Multiplex Ads

add adsense multiplex ads to wordpress

Multiplex ads, also known as responsive display ads, are dynamic ad units that automatically adjust their size, format, and appearance to fit available ad spaces across various devices and platforms.

This format allows advertisers to create a single ad, which can then be displayed in various sizes and formats across different websites and devices.

3. Global Settings

adsense global settings for wordpress

Let Google optimize the size of your mobile ads – Enable

4. Privacy & Messaging

privacy and messaging

Make sure to check and tweak every setting in this tab for better earnings.

Some Recommendations:

I suggest you not place more than 3 ads because it can slow down your website speed.

Congrats you are done.

After following all the steps to add Google AdSense to WordPress, now have patience, it will take 15-20 mins to display ads.

Manual vs Plugin Methods

add google adsense to wordpress Manual vs Plugin Methods

There are two main methods to add Google AdSense to WordPress: manual insertion and plugin insertion.

Manual Method

The manual method involves copying and pasting the AdSense code directly into your website’s HTML code.

This method requires some technical knowledge and can be more time-consuming, but it gives you more control over the placement and appearance of your ads.

To manually insert AdSense ads, you’ll need to find the HTML code for the section of your website where you want the ad to appear.

This could be the header, sidebar, footer, or within a specific post or page.

Then, you’ll need to insert the AdSense code into the HTML code at the appropriate location.

Plugin Method

On the other hand, the plugin method involves using a WordPress plugin to insert the AdSense code for you.

This method is easier and more beginner-friendly, but it may not give you as much control over the placement and appearance of your ads.

To use a plugin to insert AdSense ads, you’ll need to find a plugin that supports AdSense integration, such as Ad Inserter or AdSense Plugin WP QUADS.

Then, you’ll need to configure the plugin settings to match your preferences, such as the ad format, placement, and pages where the ad should appear.

Best Practices and Guidelines

Adsense Best Practices and Guidelines

When you’re putting ads on your WordPress site, it’s important to follow some best practices and guidelines.

Don’t overcrowd your site with ads:

While it can be tempting to place as many ads as possible on your website to maximize revenue, overcrowding your site with ads can actually have the opposite effect.

Too many ads can be overwhelming for visitors and lead them to leave your site.

Google has specific policies about the number and placement of ads on a page, so it’s important to stay within those guidelines.

Place ads where they are most likely to be seen:

The placement of your ads can have a big impact on their performance.

So place your ads in locations where visitors are most likely to see them, such as above the fold (the top part of the page that is visible without scrolling) or within the content of the page.

AdSense has specific ad placement policies that you should follow to ensure that your ads are compliant.

Use a mix of ad formats:

AdSense offers different ad formats, including display ads, link units, and matched content.

Using a mix of ad formats can help you reach a wider audience and increase your ad revenue.

For example, you might use display ads in the sidebar of your website and link units within the content of your pages.

Use responsive ads:

Responsive ads adjust to the size of the screen on which they are displayed, making them a great option for mobile users.

With more and more people accessing the internet on their mobile devices, using responsive ads can help you reach a larger audience.

Customizing AdSense Ads

Customizing AdSense Ads for wordpress

Customizing your ads can help them blend in better with your website’s design and improve their performance.


You can customize the colours of your ads to match the look and feel of your website.

AdSense offers a range of colour schemes to choose from, or you can create a custom colour scheme that matches your website’s colour palette.

Choosing colours that blend in with your website can help your ads appear more natural and less like a distraction.


AdSense offers several different ad sizes to choose from, ranging from small square ads to large leaderboard ads.

The size you choose will depend on the layout of your website and the placement of your ads.

Larger ads tend to be more noticeable, but they can also be more intrusive.

Troubleshooting Common Issues

Troubleshooting Common Issues

Ads not showing up:

One of the most common issues is when your ads aren’t showing up on your site.

This could be due to a number of reasons, such as incorrect ad code, ad unit not approved, or incorrect ad placement.

To fix this, you can double-check that you have the correct ad code, that your ad units have been approved by AdSense, and that you are placing your ads in approved locations on your site.

Low ad revenue:

If you’re not seeing the revenue you expected from your AdSense ads, there could be a few reasons for this.

It could be that your ads aren’t being seen by enough visitors, or that your ads aren’t engaging enough to generate clicks.

To fix this, you can experiment with different ad placements, ad types, and colours to see what works best for your site and content.

Violation of AdSense policies:

AdSense has strict policies that must be followed in order to participate in the program.

If you violate these policies, your account could be suspended or even permanently disabled.

Common violations include clicking on your own ads, placing ads on non-approved pages, and using ad placements that mimic site content.

To avoid policy violations, be sure to read and follow AdSense policies carefully.

AdSense ads interfering with site functionality:

In some cases, AdSense ads may interfere with the functionality of your site, such as by causing slow load times or interfering with site navigation.

To fix this, you can experiment with different ad placements and ad sizes to find a configuration that works well with your site design and functionality.

AdSense account issues:

If you’re having trouble accessing your AdSense account or experiencing other issues with your account, such as payment or login issues, you can contact AdSense support for assistance.

Wrapping Up: Add Google Adsense to WordPress

Adding AdSense to your WordPress website is a smart way to make money.

Make sure to position your ads correctly and adhere to the rules for a successful experience with AdSense on your WordPress site. Best of luck!

People also search for:

  1. Fixing Mixed Content Problem in WordPress: Step-by-Step
  2. Google AdSense Unveiled: Make Money from Website Ads
  3. How to Qualify for Google AdSense: Approval Steps
  4. Diversify Your Ads: Best Alternatives to Google AdSense
  5. What’s AMP? Enhancing Mobile Pages on WordPress