How to Properly Add Google AdSense to Your WordPress Site

Do you want to integrate Google AdSense into your WordPress blog?

One of the simplest methods to start making money online with your website is to use Google AdSense. It lets you to automatically sell and get payment for ad space on your website.

We’ll show you how to add Google AdSense to WordPress in this article, as well as some best practices and ideas for increasing your earnings.

How to Integrate Google AdSense with WordPress

What is AdSense from Google?

Google AdSense is a Google advertising network that lets bloggers and website owners make money by displaying text, photos, videos, and other interactive advertisements on their sites. These ads are particularly relevant because they are targeted by site content and audience.

You don’t have to interact with ads or worry about receiving money when you use Google AdSense. Google manages and maintains advertising connections. They collect the payment, deduct their charge, and send the remaining funds to you.

AdSense uses cost-per-click (CPC) advertising, which means you get paid every time a user clicks on an ad on your site. The amount paid per click is determined by a number of factors.

How to Begin Using AdSense

First and foremost, you must create a Google AdSense account. You can sign up using your existing Gmail account if you already have one.

You’ll have to wait for the Google AdSense team to assess your application after you’ve submitted it. For some publishers, this could take anywhere from a few hours to a few weeks.

After it has been authorized, you may access your AdSense account and obtain your ad code. This is the code you’ll need to display adverts on your WordPress website.

You only need to paste one piece of code into Google AdSense auto advertising, and Google will decide when, where, and how many ads to show on each page.

Many publishers, on the other hand, choose to manually insert adverts on their websites.

Both ways will be demonstrated. Starting with manual ad placement is recommended. After you’ve begun earning, you can play around with auto-ads to see how they compare.

1. Insert Google AdSense code manually into WordPress

To begin, select the Ads menu from the left column and then the ‘By ad unit’ tab. Click the ‘Create New Ad’ button from here.

You will be asked to select an advertisement kind. Display ads, In-feed ads, and In-article ads are all options.

Start with the display advertising if you’re hesitant.

Select your unit.

You must next give this ad unit a name and choose an ad size and type.

Enter information and choose a size.

Because the Ad’s name is only used internally, you can call it anything you want, like “SiteName Sidebar.”

The next step is to select an ad size. Although Google offers a wide range of ad sizes, certain sizes are listed as suggested since they are the most popular among marketers.

You may also select whether your ad should be responsive or static. We propose responsive advertisements because they are compatible with all devices and screen sizes.

To proceed, click on the Create button.

The ad code will now be generated by AdSense for you. It contains your publisher ID as well as the unique ad unit ID.

Get the code

Simply copy and paste your ad code into a text editor such as Notepad or TextEdit. It will be required in the following step.

Adding Google AdSense to WordPress

Next, decide where you want the ad to appear on your site. The sidebar is the most typical location for advertisements. Using WordPress widgets, you can add Google Adsense to your sidebar.

Simply go to your WordPress admin area’s Appearance » Widgets page. Then, in the relevant widget area, click the ‘+’ button to create a ‘Custom HTML’ widget block.

Create your own HTML widget block.

The Google AdSense code must then be entered in the Custom HTML widget box.

Don’t forget to click the ‘Update’ button after that.

Update the widgets page by entering code.

We recommend using the AdSanity WordPress plugin for greater placement control and tracking.

2. In WordPress, paste the Auto-Ads AdSense code.

It takes a long time to add individual advertising to different places of your website. The majority of newbies struggle to choose the finest places to place advertisements on their websites.

Google introduced auto-ads to address this issue. This allows you to upload a single code snippet to your site and let Google AdSense figure out the best-paying placement, ad size, and type for you.

This strategy has the downside of giving you less control over ad placement on your website.

This is how you’ll add Google AdSense to your website if you wish to use the auto-ads option.

To begin, go to your Google AdSense account and select the Ads option. Then, to generate the auto-ads code, click on the Get Code button.

Obtain the code for automatic placement.

AdSense will now build and show a code snippet with your publisher ID. This code can now be copied and pasted into a text editor.

The code should be copied and pasted.

Using the AdSense Auto-Ads Code in WordPress

The auto-advertising code generates ads across your WordPress blog using a single code snippet. This means you’ll have to paste the code into all of the pages where you want the ad to appear.

You can achieve this by including the code in the header.php file of your WordPress theme. The disadvantage of this strategy is that if you update or alter your theme, your ad code will vanish.

Using a plugin like Insert Headers and Footers is the ideal approach to add any site-wide code to your website.

The Insert Headers and Footers plugin must first be installed and activated. See our step-by-step guide on installing a WordPress plugin for more information.

Go to the Settings » Insert Headers and Footers page after activation. Paste your Google AdSense code into the header area from here.

Add code to the header

Remember to save your changes by clicking the ‘Save’ button.

The ad code will now be added to all pages of your website by the plugin. It may take some time for Google AdSense to begin showing adverts.

Best Practices for AdSense and Frequently Asked Questions

We’ve answered various AdSense-related inquiries over the years. We’ve learnt a lot about optimization from using AdSense on several of our sites in the past. Some AdSense best practices and commonly asked questions are included below.

What is the most effective AdSense ad size?

Although ad location is crucial, we’ve discovered that 336280 and 300250 are the optimal sizes. These ads are the most adaptable to most screen sizes and pay the most.

What is the most effective AdSense placement?

This is completely dependent on your design. Because you want to gain more impressions and clicks, you should put your adverts in a more prominent location. We’ve discovered that advertising near the top of the screen in post content get the most clicks.

Several consumers have requested that we include AdSense in a floating widget because it will be visible. We strongly advise against doing so because it is against Google’s Terms of Service. If you break their terms of service, you risk being kicked out of the program.

Is it possible for me to click on my own Google AdSense ads?

Beginners are frequently tempted to click on their own adverts or encourage family members to do so for them. Please refrain from doing so. Google’s algorithm is really intelligent, and it recognizes when you’re clicking on your own advertisement. This may result in your removal from the program.

In Google AdSense, what is Page RPM?

Revenue per Mille (RPM) stands for revenue per 1000 impressions. This is calculated by multiplying the total number of clicks and the cost per click by the total number of pageviews.

Can I use WordPress with my Blogger or YouTube AdSense account?

You certainly can. You can modify your AdSense account type and utilize it with WordPress if you started using AdSense on one of Google’s hosted sites, such as Blogger or YouTube. Fill out an application form with the URL of the site you wish to monetize and submit it to Google AdSense.

Simply log into your AdSense account and select ‘Other Products’ from the ‘My Ads’ menu. After that, select ‘Upgrade now’ and fill out the application form.

What is Google AdSense CTR?

Varied types of websites have different click-through rates. The topics of your website, your audience type, ad placement on your site, and other factors all influence ad clicks. Because you don’t have access to the click rates of other websites like your own, determining the perfect CTR for Google AdSense is difficult.

However, if your site’s CTR is low, Google AdSense includes built-in mechanisms that will start sending you notifications. To increase your ad earnings, follow the optimization recommendations in the Google AdSense dashboard.

Google AdSense pays publishers when and how.

Google AdSense calculates and displays your prior month’s profits on your ‘Transactions’ page each month. Your payment is processed and released by the 21st of the month if your earnings meet the required criteria.

Direct electronic transfer, wire transfer, cheque, Western Union, and other ways of payment are all accessible.

Why was my Google AdSense application rejected?

If your website is fresh new or otherwise does not meet the AdSense program regulations or terms and conditions, Google Adsense may reject your application.

If they do, you can always try another ad management plugin or find another means to monetize your WordPress site.

What are the criteria for getting your Google AdSense application approved?

The following are the minimum prerequisites for getting your Google AdSense account approved.

  • AdSense program policies and terms and conditions must be followed by your website and all of its content.
  • Your website should have been up for at least 6 months.
  • You, the candidate, must be over the age of eighteen.

Note that even if your application passes all of the criteria, Google AdSense maintains the right to reject it.

Is it possible to integrate Google AdSense into my blog?

Unless you upgrade to the Business plan, you won’t be able to use Google AdSense on your site. Please visit our guide on the differences between and for more information.

What’s the difference between AdSense and AdWords from Google?

You can use Google AdWords to advertise on other websites, including those that are members of the Google AdSense program.

Google AdSense allows you to monetize your website by displaying advertisements.

We hope you found this guide useful in setting up Google AdSense on your WordPress blog.