January 03rd, 2024

how to add adsense auto ads code in wordpress?



Like (0) Comments (1)



1 Comments Add Your Comment


Akshat Gupta
3 years ago Selected
First login to your Google AdSense account and click on Ads tab. Next, click on the Get Code button to generate you 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 be shown in all the pages of the site.

If your theme has a box by default to add code to Header and Footer, you can paste this code into the Header.

But your theme does not provide any default option to add code to Header and Footer, so you can use plugin.

First of all, you need to install and activate the Insert Headers and Footers plugin on your site.

After activating the plugin, click on Settings >> Insert Headers and Footers and paste the AdSense code in the header section.

After that click on Save button to store your settings. It may take some time for Google AdSense to show ads.
Like (0) Reply

Post a Comment

To leave a comment, please Login or Register