How to add google Adsense to WordPress website

How to add google Adsense to a WordPress website? (Easy & Full Guide)

If you want to make money online, displaying ads on your website will be a good choice. Displaying Google Ads is a great option you wish to use. Simply google provides codes you can easily add to any website whatever the code used to build it, in this article we are going to explain how to embed AdSense codes into your WordPress website using plugins or without.

Use Google Sitekit Plugin to connect google AdSense to WordPress

In my experience, Google site kit is the easiest way to automatically embed Adsense code in WordPress. It is a WordPress plugin that connects your website to several google services such as Google search console, Google Analytics, Google Adsense, page speed, and Google tag manager. Here are the steps to activate ads on your website:

Use Google Sitekit Plugin to connect google AdSense to WordPress
  1. Login to your WordPress dashboard
  2. Go to plugins – Add new plugin
  3. Search for the Google Sitekit plugin, install and activate
  4. Now go to the plugin dashboard
  5. Sign in with your Adsense Google account 
  6. In the settings, you will find the option let sit kit place the Adsense code on your website (recommended) and activate it.
  7. Wait until ads show on your website within a few hours and congratulations.

This quick Adsense plugin works best if you enable auto ads in WordPress from your google Adsense account settings and show your earnings on your WordPress dashboard.

Embed ad HTML code Using a WordPress plugin

We have 2 options for adding ad codes to your website

Embed ad code Using a WordPress plugin

If you enable auto ads in your Adsense program dashboard settings

  • Simply install a code-inserting plugin to your WordPress site, and activate it.
  • Then sign in to your Google Adsense dashboard
  • Press Get code then copy it 
  • The Code Snippets » Header & Footer page is the place to start. Afterward, paste your code into the header
  • Save settings and now auto ads are activated on your website and might take a few hours to be live.

If you enable to activate the ads by unit (Customized ads placements)

You may use an ad inserter plugin, which makes things easy to insert ad codes into preset placements on your website, follow these steps:

google Adsense ads types
  1. Sign in to your google AdSense account
  2. On the left-hand menu click on ads
  3. Click on the By Ad unit tab
  4. Choose your ad type. There are 4 types ( Display ads – In-feed ads – In article ads and multiplex ads)
  5. Do not forget to name the ad units, we recommend naming them by the placement name, I.E: above the fold or below the footer, etc.
  6. Ad units will be listed under (existing ad units) on the same page
  7. Copy codes from the right-hand items to paste them on your customized placement on your website.
  8. Go to your WordPress website and install and activate an ad inserter plugin
  9. Choose where to display ads. ( entire website, pages, or posts only)
  10. Now you can choose how many ads and where to display them on a page
  11. Copy the ad code from Google Adsense as mentioned in step 7. Paste them and save
  12. It might take some time ( almost an hour or two) for ads to be live on your website
 ad inserter plugin

Notes about (customized placements) by ad unit

In your account, there is the global settings tab, We recommend ticking on (Let Google optimize the size of your mobile ads) if you do not know exactly how to adjust ad sizes.

Some themes, especially modern news or magazine themes have the option of customized ad placements, so please check your WordPress theme options before installing plugins you do not need.

Add Adsense codes manually to a WordPress website

  1. Start by clicking on the Ads menu in the left column, 
  2. then select ‘By ad unit’ from the menu. 
  3. Click on ‘Create New Ad’ to proceed.
  4. In the next step, you will be prompted to select an ad type. You can choose between Display ads, In-feed ads, or In-article ads.

It’s smart to start with display ads if you’re unsure.

  1. Next, give this ad unit a name and select its type and size.
  2. You can name the Ad whatever you want, for example, “Above footer”
  3. Next, choose the ad size. Although Google offers a wide range of ad sizes, certain sizes are listed as recommended because they are the most popular.
  4. It is also possible to choose whether your ads should be responsive or fixed. It is advisable to choose responsive ads since they work well on all devices and screens.
  5. To continue, click the Create button.
  6. Your account will now generate your ad code. This code contains the unique ID of your ad unit as well as your publisher ID.
  7. Paste your ad code into a plain text editor like Notepad or TextEdit and save the file.
  8. Next, decide where the ad will appear on your website. In most cases, ads are displayed in the sidebar. WordPress widgets allow you to add Google Adsense to your sidebar.
  9. Go to the Appearance » Widgets page in your WordPress admin area. 
  10. To add a Custom HTML widget block, click the ‘+’ button.
  11. To display ads, you must enter the code into the Custom HTML widget block.
  12. Then, click the ‘Update’ button.
Add Adsense codes manually to a WordPress website widget

1- WordPress vs Shopify Which Is Better for You?
2- WordPress Best Themes for Blog

Conclusion 

Displaying google ads on your website is one of the most popular ways to make money online, Just keep in mind that your website is able to be approved by google Adsense, which you can do it easily by applying Google’s latest updates, especially the google spam update and stick to the best practices to keep your revenue live and ongoing.

Google takes full responsibility for the authentication of ads displayed, making authenticity one less thing for you to be concerned about. So, start generating revenue with little to no effort and code away!

Eng.M.Thatwart
Eng.M.Thatwart is a developer and author at wpqanda, who is passionate about WordPress, digital marketing, and website builders. He enjoys sharing his knowledge through his writings.