How to Properly Add Google AdSense to Your WordPress Site

How to Integrate Google AdSense in an Appropriate Manner Into Your WordPress Website

Do you want to add Google AdSense to the website you’ve built with WordPress?

Using Google AdSense to monetize your website is one of the most straightforward approaches to earning money online. It gives you the ability to automatically sell ad space on your website to advertisers and receive payment for doing so.

This post will walk you through the process of adding Google AdSense in WordPress, as well as provide you with some recommendations for best practises and suggestions on how to enhance your revenue.

What is Google AdSense

What is Google AdSense

Google AdSense is an advertising network that is managed by Google AdSense that provides website owners and bloggers with the option to make money by displaying text, photos, videos, and other interactive adverts on their websites. These advertisements are particularly relevant since they are targeted according to the content of the site and the audience.

Using Google AdSense doesn’t need you to interact with advertisers or worry about collecting payments, so it’s a really convenient option. Google AdSense is in charge of managing and fostering partnerships with various advertisers. They will receive the payment, deduct their administration charge, and then send you the remaining funds from the transaction.

AdSense makes available advertisements that are paid for on a cost-per-click (CPC) basis. This means that you earn money each time a user clicks on an ad that is displayed on your website. The quantity of money acquired for each click might differ widely depending on a number of different factors.

 A Quick Introduction to Google AdSense

Signing up for an account with Google AdSense is the first step that has to be done by you. If you already have a Gmail account, you may join up for this service using the same account you use for Gmail.
After you have sent in your application, you will have to wait for the Google AdSense staff to conduct an evaluation of it. Depending on the publisher, this might take anything from a few hours to a few weeks.

After it has been reviewed and approved, you will be able to access your AdSense account and retrieve your ad code. If you want to display advertisements on your website that is powered by WordPress, you will need to insert this code.
When you use Google AdSense auto advertising, all you need to do is paste in one piece of code, and Google AdSense will take care of determining when, where, and how many advertisements to display on each page automatically.
However, the majority of publishers still rely on the manual way to position advertisements on their websites one by one.
Both of these approaches will be shown to you. We advise getting started with the manual ad placement at the earliest possible opportunity. Once you have begun making money, you may next experiment with different auto-ads to judge their effectiveness on your own.

Install the Google AdSense ad code for your website manually in WordPress

To begin, navigate to the tab labelled “By ad unit” by first selecting the “Ads” option located in the left-hand column of the screen. From this point forward, you will need to select the option labelled “Create New Ad.”

You will be given the option to select an advertisement kind. You have the option of purchasing display advertisements, in-feed advertisements, or in-article advertisements.

When in doubt, it is best to begin with the display advertisements.


 Install the Google AdSense ad code for your website manually in WordPress

The next step is to give this ad unit a name, after which you will be prompted to pick the ad size and kind.

The next step is to give this ad unit a name, after which you will be prompted to pick the ad size and kind.

Because the name of the advertisement is never shown to the public, you are free to give it whatever name you choose, such as “SiteName Sidebar.”

The next available choice is to select the Ad Size. Although Google  provides marketers with a broad selection of ad sizes to choose from, the company does identify some sizes as suggested due to the fact that these sizes are the most often purchased by advertisers.

You also have the option of deciding whether you want your advertisement to be fixed or responsive. We strongly suggest going with responsive advertisements because they function correctly across all devices and sized screens.

The next step is to go forward by selecting the “Create” button.

The ad code will be generated for you by AdSense at this time. It includes both the one-of-a-kind ad unit ID as well as your publisher ID.


Simply duplicate your advertisement’s code, and then paste it into a text editor that can handle plain text, such as Notepad or TextEdit. You will need it for the step that comes after this one.

Adding Google AdSense in WordPress

add custom html widget block

Next, you will need to decide where on your website you would like the advertisement to be shown. The sidebar is the location that often displays advertisements. Utilizing widgets provided by WordPress enables you to include Google Adsense into your sidebar.


Simply navigate to the Appearance » Widgets tab in the administrative section of your WordPress site. After that, move on to the following step by clicking the “+” button to add a “Custom HTML” widget block to the relevant widget area.

Next, you will need to go to the Custom HTML widget block and add the code for the Google AdSense widget.

After that, you must ensure that you click the “Update” option before moving on.

Next, you’ll need to enter the Google AdSense code in the Custom HTML widget block.Next, you’ll need to enter the Google AdSense code in the Custom HTML widget block.Next, you’ll need to enter the Google AdSense code in the Custom HTML widget block.Next, you’ll need to enter the Google AdSense code in the Custom HTML widget block.Next, you’ll need to enter the Google AdSense code in the Custom HTML widget block.Next, you’ll need to enter the Google AdSense code in the Custom HTML widget block.

Check out the AdSanity WordPress plugin for improved control over placement and tracking, which comes highly recommended by us. For further information, please refer to our article on the most effective ad management options for WordPress.

Insert the AdSense code for auto-ads into WordPress

Adding separate advertisements to various sections of your website consumes a significant amount of effort. The majority of newcomers have trouble determining where on their websites would be the most effective place to display advertisements.

Google came up with the idea of auto-ads as a solution to this problem. This makes it possible for you to simply upload one code snippet to your website and let Google AdSense figure out the position, size, and type of ads that will bring in the most revenue.

One of the drawbacks of using this strategy is that it gives you less control over the placement of advertisements on your website.

Adding Google AdSense to your website should be done in the manner described here if you wish to make advantage of the auto-ads function.
To begin, navigate to the Ads tab under your Google AdSense account after you have successfully logged in. In the following step, you will need to select the Get Code button in order to produce the auto-ads code.

get code for auto placement

AdSense will now build a code snippet for you to display that contains your publisher ID and will show it to you. It is now possible for you to duplicate this code and paste it into a text editor.

copy and paste the code


 Integrating AdSense Auto-Ads Code into WordPress Websites

The auto-ads code will produce advertisements anywhere on your WordPress blog by utilising only a single code snippet. This indicates that you will need to add the code to each and every page on which you intend to display the advertisement.

Including the code in the header.php file of your WordPress theme is one approach to achieving this goal. However, if you decide to upgrade your theme or use a different one, your ad code will be removed, which is a drawback of using this strategy.

Utilizing a plugin like WPCode is the most effective method for incorporating any kind of site-wide code into your website.

To begin, you will need to download, install, and then activate the free WPCode plugin. Check out our detailed walkthrough of how to install a WordPress plugin for additional information and specifics.

Visit the Code Snippets » Header & Footer page after the plugin has been activated. You will need to insert your Google AdSense code into the header portion of your website from here.

paste google adsense code wpcode

If you want to keep your changes, you have to remember to click the button that says “Save Changes.”

The ad code will now be added to every page of your website because of the plugin. It’s possible that Google AdSense won’t begin displaying adverts for a while.

AdSense recommendations for optimal performance and answers to frequently asked questions

Throughout the years, we have addressed a variety of inquiries about AdSense. Because we have utilised Google AdSense on a number of our websites in the past, we have a significant amount of experience with optimization. The following are some excellent practises and commonly asked questions regarding AdSense.

What is the ideal size for an AdSense ad?

Although ad placement is extremely important, we’ve discovered that the optimal sizes are 336 pixels by 280 pixels and 300 pixels by 250 pixels. These advertisements often offer the greatest pay rate and are able to fit on a variety of screen sizes.

What Is the Most Effective Placement for AdSense?

This is totally dependant on the layout you choose. Because increasing the number of impressions and clicks is the objective, you should position your advertisements in a more prominent location. According to our research, users are more likely to click on advertisements that are located inside the content of posts and those are located towards the top of the screen.

Because it would be so noticeable, some people have inquired with us about the possibility of integrating AdSense in the form of a floating widget. Due to the fact that Google’s terms of service prohibit such behaviour, we highly advise against engaging in it. If you breach their Terms of Service, then there is a possibility that you will be kicked out of the programme.

 If I have my own Google AdSense ads, am I allowed to click on them?

Beginners frequently face the temptation to click on their own advertisements or to persuade members of their family to click on their advertisements. I beg you, refrain from doing it. The algorithm that Google uses is quite astute and can detect when you are clicking on one of your own ads. Because of this, you risk being kicked out of the programme.

In Google AdSense, what does Page RPM stand for?

The term “revenue per mille,” sometimes known as “revenue per 1000 impressions,” is abbreviated as “RPM.” To calculate this, first multiply the total number of clicks by the cost per click, then take the product of those two numbers and divide it by the total number of pageviews.

If I already have an AdSense account for Blogger or YouTube, can I utilise it with WordPress?

Yes, you can. If you began using AdSense on one of Google’s hosted platforms such as Blogger or YouTube, you can switch the type of account you have with AdSense so that you can utilise it with WordPress. In order to sign up for Google AdSense, you will need to fill out an application form and submit the URL of the website that you wish to monetise.

Simply sign in to your AdSense account and click on the “Other Products” option located under the “My Ads” section of the menu. The following step is for you to select “Upgrade now” and then finish filling out the application form.

What is the Click-Through Rate (CTR) in Google AdSense?

Click-through rates, also known as CTR, are extremely variable depending on the type of website. The number of times people click on your advertisements is determined by a wide variety of elements, including the subject matter of your website, the kind of audience you have, where the advertisements are located on your website, and other aspects. Because you do not have access to the click rates of other websites that are similar to your own, it is quite difficult to determine what the optimal CTR for Google AdSense should be.

If, on the other hand, your website is not receiving a decent click-through rate (CTR), the built-in tools that come with Google AdSense will begin displaying notifications to you. If you want to increase your ad revenue, you should follow the optimization instructions that are displayed inside the Google AdSense dashboard.

When and in what manner do publishers get paid by Google AdSense?

Your profits from the previous month are tallied and shown on the ‘Transactions’ tab of your Google AdSense account on the first of each month. If the amount that you have earned is greater than the minimum requirement, then your payment will be processed and dispersed by the 21st of the same month.

There is more than one way to make a payment, and some of the options include direct electronic transfer, wire transfer, cheque, Western Union, and others.

 I was wondering why my application for Google AdSense was denied.

Your application for Google Adsense may be declined if your website is brand-new or if it does not, for some other reason, comply with the standards of the AdSense programme or their terms and conditions.

If they do, you always have the option of utilising a different ad management plugin or trying out another method of monetizing your WordPress site to bring in some extra cash.

What are the criteria that must be met for the Google AdSense application to be accepted?

The following are the minimal conditions that must be met in order to have your application for a Google AdSense account accepted.

  • Your website and all of its content need to be in compliance with the policies , terms and conditions of the AdSense programme.
  • At the very least, your website should be six months old
  • It is required that the candidate be at least 18 years old.

Note that even if your submission satisfies all of the conditions, Google AdSense still has the ability to refuse your application even if it fulfils all of the standards.

I’m interested in adding Google AdSense to my site on—is that possible?

You will not be able to add Google AdSense to your website if it is hosted on until you upgrade to the Business plan. Please refer to our tutorial on the distinctions between and for further information on this subject.

What are the key distinctions between Google AdSense and Google AdWords?

You are able to place advertisements on other websites using Google AdWords, including those websites that are a part of the Google AdSense programme.

You may generate revenue from your website through the use of Google AdSense by displaying advertisements on your website.

How can I get rid of Adsense Ads?

If Google Adsense is showing an excessive number of advertising or if you notice ads appearing in unexpected locations on your website, it’s likely that you’re employing Google Adsense Auto adverts.

Simply login in to your Adsense account and navigate to the Advertising » Overview menu item to disable Auto ads. Next, you’ll need to choose the website you want to edit and then click the “Edit” icon. You may entirely eliminate Auto advertising from your site by going to the ‘Site Settings’ menu and disabling the relevant items there. You also have the ability to exclude certain sites from having Auto advertisements displayed on them by selecting the “Page Exclusions” option.

We hope that you were able to add Google AdSense to your WordPress blog with the aid of this post. You might also be interested in reading our advice on how to boost the traffic to your blog as well as our comparison of the top email marketing services for expanding your subscriber base.

Add a Comment

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