Skip to main content

How to Add Adsense Code in WordPress: After getting decent traffic to your site or blog, the first step is to monetize the website. Google Adsense is one of the top-paying Advertisers in the world. There are plenty of websites monetized with Google Adsense. Google Adsense pays you high, but they also have certain restrictions and instructions to be followed.

What is Google Adsense?

Google Adsense is an advertising network owned by Google which allows bloggers and website owners to earn money for displaying images, texts, and other interactive advertisements on their website. By using Google Adsense, you can be safe and need not worry about payments. Google administrators are maintaining a good relationship with the advertisers, they get the payment from them, take the maintenance fee and deposit the remaining in your account.

You might also read 8 Best Google Forms Alternatives in 2022.

How to Add Adsense Code in WordPress?

There are many ways of adding Adsense code to your WordPress site. Here are the two most important and easiest ways to add the Adsense code to the WordPress:

  1. Adding Adsense code without using Plugin
  2. Adding Adsense code using Plugin

Getting Adsense Code

Step 1: Go to Google Adsense

Step 2: Under My Ads -> Contents -> Click on Ad Units and then click New Ad Unit

How to Add Adsense Code in WordPress
Content > Ad Unites

Step 3: You can select which type of Ads you prefer. There are four types available. The types are Text & Display Ads, Matched Content ads, In-Feed Ads, and In-Article Ads.

How to Add Adsense Code in WordPress
Types of Ads | How to Add Adsense Code in WordPress

Step 4: After selecting the type of ads, give the ad unit a name and choose the banner size. You can also modify the styles, and custom channels as well. Then click Save and Get Code.

How to Add Adsense Code in WordPress
Save and Get Code

Step 5: Once you click “Save and Get Code“, the Ad Unit will be successfully created. You can copy the AdSense code for further use.

How to Add Adsense Code in WordPress
Ad Unit Successfully Created | How to Add Adsense Code in WordPress

1. Adding Adsense Code without Using Plugin

The Ads are displayed in the sidebar mostly. You can easily add the Adsense code on the sidebars without using the plugins. After getting the Adsense Code, Log in to the WordPress site. Click Appearance -> Widgets.

How to Add Adsense Code in WordPress
Appearance > Widgets

There are plenty of widgets available, search for the “Custom HTML” widget and drag the widget towards the sidebar and place it. Now add the title and paste the code into the box and click save.

How to Add Adsense Code in WordPress
Custom HTML

This will place the Adsense code on the sidebar of all the posts.

Read also How to Highlight Text in WordPress [With/Without Plugin]

2. Adding Adsense Code Using Plugin

There are plenty of plugins available in WordPress to insert Adsense codes into your posts. A few famous plugins to insert ad codes are Ad Inserter, Easy Adsense Ads, AdSense Plugin WP QUADS, and much more. You can try any of the above plugins. Here, We are listing how to add Adsense codes using Ad Inserter

In the WordPress Dashboard, click on Plugin -> Add New

How to Add Adsense Code in WordPress
Plugins > Add New

Search for Ad Inserter plugin and click on Install Button

How to Add Adsense Code in WordPress
Ad Inserter > Install Now | How to Add Adsense Code in WordPress

Once it is installed, click on the Activate Button

How to Add Adsense Code in WordPress
Ad Inserter > Activate | How to Add Adsense Code in WordPress

Now go to Settings -> Ad Inserter

How to Add Adsense Code in WordPress
Settings > Ad Inserter

On the Ad Inserter page, You will find Blocks and many checkboxes. The black space is the space where you enter the Adsense code and You can also set the ads on the homepage, static page, categories, and much more.

How to Add Adsense Code in WordPress
Ad Inserter | How to Add Adsense Code in WordPress

Select the Automatic Insertion dropdown. There you will find the places where you can place the ads.

How to Add Adsense Code in WordPress
Inserting Positions | How to Add Adsense Code in WordPress

Once you place the ads in a particular place. You can go to block 2 to place the ads in another place. Thus, the plugin is very helpful to place ads in the space you wish.

How to Add Adsense Code in WordPress
Save All Settings | How to Add Adsense Code in WordPress

Stuck somewhere in the middle of the process, then leave a comment below.

Leave a Reply