WordPress Made Easy

How to Add Google AdSense to Your WordPress Site

One of the most popular ways to monetize your website is through Google AdSense.

It lets you automatically sell and get paid for ad space on your website. AdSense is one of the simplest ways to begin earning money from your website.

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

Installing Google AdSense correctly in WordPress

What is Google AdSense, and how does it work?

Google AdSense is a Google-owned advertising network that allows bloggers and website owners to make money by displaying text, images, 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 deal with ads or worry about collecting money with Google AdSense, so it’s a no-brainer. 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 several factors.

How to Begin Using AdSense

The first step is to sign up for a Google AdSense account. You can sign up using your existing Gmail account if you already have one.

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

Once it’s been authorized, you’ll be able to access your AdSense account and obtain your ad code. This is the code you’ll need to add to your website for advertising to appear.

Google AdSense just unveiled auto advertising, in which you paste only one piece of code and Google selects when, where, and how many advertisements to appear on each page automatically.

Most publishers, on the other hand, still use manual ways to 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. Do it by hand In WordPress, paste the Google AdSense ad code.

To get started, go to the left column and select the Ads menu, then the ‘By ad unit’ option. Click on the ‘Create New Ad’ button from here.

You’ll be prompted to select an ad kind. You have the option of choosing between ‘Display advertisements,’ ‘In-feed ads,’ and ‘In-article ads.’

Start with the display advertising if you’re hesitant.

Select an ad type

After that, you must give this ad unit a name and choose an ad size and type.

Choose an ad kind and give it a name.

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. Responsive advertising is the best option because they function on all devices and screen sizes.

Then, to proceed, click 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.

Ad code should be copied.

You can also copy the code for your AMP pages if your website has a Google AMP version.

Simply copy and paste your ad code into a plain text editor such as Notepad or TextEdit. It’ll come in handy in the next phase.

Adding Google AdSense to WordPress 

First, decide where you want the ad to appear on your site. The most typical place for ads to appear is in the sidebar. Using WordPress widgets, you can include Google Adsense in your sidebar.

Simply go to your WordPress admin area’s Appearance » Widgets page. After that, drag and drop the ‘Custom HTML’ widget to the relevant widget area and paste your Google AdSense code into it.

In the WordPress sidebar, paste the Google AdSense 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 on your website. The majority of newbies have trouble determining the optimal places to place advertisements on their websites.

Google has created auto-ads to address this issue. This allows you to upload a single code snippet to your website 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 get started, go to your Google AdSense account and select the Ads option. Then, to generate the auto-ads code, click on the Get Code button.

Create Google AdSense auto-ads code.

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

Code for auto advertisements

Using the AdSense Auto-Ads Code in WordPress

The auto-advertising code generates ads across your WordPress website 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.

Adding the code to your WordPress theme’s header.php file is one way to do this. 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. You’ll need to paste your Google AdSense code into the header area from here.

In the header, place the ad code.

Don’t forget to save your changes by clicking the ‘Save’ button.

The ad code will now appear on all of your website’s pages, thanks to the plugin. It could take a while for Google AdSense to start showing adverts.

Best Practices for AdSense and Frequently Asked Questions

We’ve answered various AdSense-related inquiries over the years. We’ve learned 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 largely dependent on the design of your space. If you want to acquire more clicks, you should put your adverts in a more visible location. We’ve discovered that advertising near the top of the screen, within post content, gets the most hits.

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 ads or encourage family members to do so for them. Please don’t make that mistake. Google’s algorithm is really intelligent, and it recognizes when you’re clicking on your own ad. You may be kicked out of the program if you do this.

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 by the cost per click and then dividing the total number of page views by the total number of clicks.

Is it possible to utilize WordPress with my Blogger or YouTube AdSense account?

Yes, 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. By filling up an application form, you’ll need to provide Google AdSense with the URL of the site you want to monetize.

Simply connect to your AdSense account and select the ‘Other Products’ option under ‘My Ads’. After that, select ‘Upgrade now’ and fill out the application form.

What is Google AdSense’s CTR?

CTR, or click-through rates, vary greatly depending on the type of website. Your ad clicks are determined by a variety of things, including the contents of your website, your target audience, ad placement on your site, and more. Because you don’t have access to the click rates of other websites like your own, determining the perfect CTR for Google AdSense is quite 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 revenue, follow the optimization instructions provided in the Google AdSense dashboard.

When does Google AdSense pay publishers, and how does it do so?

Every month, Google AdSense calculates and displays your prior month’s profits on your ‘Transactions’ page. If your earnings fall within the required range, your payment will be processed and released by the 21st of the following month.

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

Why was my AdSense application rejected by Google?

If your website violates the AdSense program’s policies or terms and conditions, Google AdSense may reject your application.

What are the conditions for approving a Google AdSense application?

The following are the minimum prerequisites for getting your Google AdSense to 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 WordPress.com blog?

Unless you upgrade to the Business plan, you won’t be able to use Google AdSense on your WordPress.com site.

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 on it.


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

Comments are closed.