Do you want to add Google AdSense Code to your site?
Google AdSense is the best Ad network in the world. This is the easiest way to monetize your website and earn money online from the website. It offers high-quality and right ads to your visitors.
What is Google AdSense
Google AdSense is an advertising network run by Google through which website publishers can earn money by showing text, images, video, or interactive ads on their websites. This site displays highly relevant ads by targeting content and visitors.
It provides cost-per-click (CPC) ads. You will get money when users click on your ads. The money received per click varies depending on different factors.
Adsense’s minimum payout threshold is $ 100. Which you can get through a check, EFT, wire transfer, and Western Union.
If you want to display AdSense ads on your WordPress site, then first you have to sign up for a Google AdSense account. But obtaining AdSense approval is not easy. You have to follow its strict guidelines.
Once you submit your application, you will have to wait from week to week to review it.
Now let’s add Google AdSense Code to our site…
How to Manually Install Google Adsense in WordPress
First of all, log in to your Adsense account. Then click on Ads >> By ad unit. After this, you have to click on Create a new ad unit. [You can choose ad type for your ad unit, currently, I have selected Display ads]
After this, you have to give a name (anything) of the ad unit, then choose the size of the ad unit.
Google offers a variety of ad sizes, some of which are very popular among advertisers. However, you can choose a responsive or fixed ad size. I would recommend you to choose responsive ads as they work well on all devices and screen sizes.
Next, click on the Create button. AdSense will now generate ad code for you which will have a unique ad unit ID and your publisher ID.
Now you need to determine where you want the ad to appear on your website. Advertisements are usually displayed in the sidebar or header. You can add the Google Adsense code to your sidebar using the WordPress widget.
Click Appearance >> Widgets. Then drag the Custom HTML widget into your sidebar then paste your AdSense code.
How to add AdSense auto Ads code in WordPress
It takes a lot of time to add different ads in different places on the website. And most new bloggers are unable to find the best locations to display ads on their sites.
In such a situation, AdSense Auto-ads proves to be the best option. All you have to do is add a code to your site. Google automatically displays the highest paying ads on the best locations on your site.
First login to your Google AdSense accounts and click on the Ads tab. Next, you need to click on the Get Code button to generate auto-ads code.
AdSense will now generate a code snippet.
You have to paste this code in the Header of the site so that ads can show in all the pages of the site.
If your theme provides a box by default to add code to Header and Footer, then you can paste this code in Header.
But your theme does not provide any default option to add code to Header and Footer, you can use the plugin.
After activating the plugin, click Settings >> Insert Headers and Footers and paste the AdSense code in the header section.
After this click on the Save button to store your settings. It may take some time for Google AdSense to display ads.
How to Add AdSense Auto Ads Code to Google AMP
You use Google AMP on your site and want to show AdSense Auto Ads in the AMP version page of your website.
It is very easy to do this… Login to Google AdSense account and click on Ads >> AMP is on.
This will give you two codes… You must first paste the code between the head tags of the HTML of your AMP site. And paste the second code immediately after the body tag.
Now just click on AMP >> Advance Setup >> Settings >> Advanced Settings. Paste the first code in the Enter HTML in Headbox, then paste the second code in the Enter HTML in Body.
Click the Save button to store your settings. Google AdSense will start showing ads on your AMP page after some time.
How to Manually Add Code in Google AMP
First, click on Ads >> By ad unit. After this create a new ad unit.
After creating the ad unit, you click on AMP >> Advance Setup >> Settings >> Advertisement. You can show an advertisement in your favorite Positions:
- Below the Header (SiteWide)
- Below the Footer (SiteWide)
- Above the Post Content
- Below the Post Content (Single Post)
- Below The Title (Single Post)
- Above the Related Posts (Single Post)
Simply enable the place where you want to display Adsense ad and paste the Data AD Client and Data AD Slot.
enough…! I hope this post helped you add Google AdSense to your WordPress site.
Small request, if this post has proved helpful for you, then don’t forget to share it!