Google Adsense is the most popular contextual ad-serving network. It provides the easiest ways to display ads on your website by just placing the code and Google will take care of the rest. In this article, we will show you how to add Google Adsense code to WordPress to start serving ads in your webpages and make money out of your blog.
What you will need
- Google Adsense Account. Don’t have an account? Register here.
- A valid bank account to receive your earnings
- Should be 18 years old
- Access to the WordPress Admin Page
After creating an
1. Adding code to site content
Using a plugin
WordPress has plugins for almost anything. Adsense code is not an excuse and we have a plugin for that. A plugin which will allow you to make changes to Header would do perfectly. Here we will use the plugin
Insert Headers and Footers plugin which is even recommended by Google.
- Install the plugin “Insert Headers and Footers”
After installing activate the plugin
- Click on Insert Headers and Footers option in the WordPress Settings menu.
WordPress settings is available in the left side. Image is shown below
- Enter the Adsense Code snippet in the section “Scripts in Header” as shown in the image.
Whatever is available in this section will be printed in the header section of every WordPress pages and posts of your website.
- Click on Save and you are good to go now.
This will insert the adsense code in every pages/posts of your website.
- Now login to the adsense account and select “I’ve pasted the code into my site” option and click Done.
Now google will validate your site if the code is available in the webpage and they will start reviewing your application.
This is how to add Google Adsense code to WordPress by using a plugin.
Without using a plugin
It’s super easy to add Google Adsense to WordPress if you’re using a theme based on the popular Genesis Framework. There are two ways in the Genesis theme to add adsense.
- Using the Original Theme settings page
- Using the theme settings in the Customizer page
Using Original Theme Settings Page:
Go to Genesis > Theme Settings to configure these settings using the original Theme Settings page.
Add your publisher id which starts with “ca-pub” in the Google Adsense publisher ID text box. and click save.
Using the theme settings in the Customizer page:
Go to Appearance > Customize > Theme Settings > Google AdSense to configure these settings in the WordPress Customizer.
Add your publisher id which starts with “ca-pub” in the Google Adsense publisher ID text box and click save.
Note: Works only if you are using Genesis Theme. We have not shown how to add the code by editing functions.php files as its not a recommended method.
2. Adding Adsense code to your widgets
Google Ads can also be displayed in Widgets by placing the adsense code in the widgets. To place ads in the widgets, navigate to Appearance -> Widgets.
Add a Custom HTML widget in your desired location of the site and place the adsense code you have copied from Adsense window, Save your widget. This will automatically start showing ads in your website.
Frequently Asked Questions
You may have some questions when you
In normal cases, It would take less than 24 hours. But it some cases google may take longer. As far as i have seen, First time applicants get reviewed faster than compared to the review again application.
No, google has a strict program policies and applies site applications which comply with their policies.
Yes, The code should be available
Though Google Adsense is the best option for earning from your websites, There are also other options available in the market such as media.net.Media.net is platform combinedly owned by Yahoo and Microsoft.
Strictly NO. Google systems are very smart and if the systems found any suspicious activities then the adsense account will be immediately blocked.
yes you can do that, but Google will review each and every website before starting showing ads on a specific website.
No you should retain the code in your header area permanently to display ads.
Finally, you have learned how to add Google Adsense code to WordPress with and without plugins. Feel free to comment if you have any questions. Happy Earning from your blog. 🙂
You may also like
Google Adsense Review
- Display contextual Ads
- Earning Potential
- Ease of using
- Application Approval Ratio