An AdSense unit is a placeholder for the ads you’ll display on your website. You can create many ad units for a single web page, with each ad unit serving a specific type of ad. To create an AdSense ad unit, log in to your AdSense account and click on the “By ad unit”:
Once you know how to add Google Adsense to a WordPress site, you can now start creating ad units.
Next, select the type of ads you want to display on your site. You have three options:
If you’re not sure which ad type to use, we recommend starting with display ads.
After clicking on your ad type, you’ll be asked Cork Gents Bicycle shop to name your ad unit. This is just for internal purposes, specifically to help you manage many different ad units.
After clicking on your ad type, you’ll be asked to name your ad unit.
Besides naming your ad unit, you’ll also have to choose your ad size. Responsive ads are the most recommended as they display well across different devices and screen sizes.
AdSense will generate a unique ad code for you when you do this. This contains the ad unit ID and your publisher ID.
When you create an ad unit, AdSense will generate a unique ad code for you.
You’ll use this code to place your ad units on your site.
Placing AdSense Ads on Your WordPress Site
Once you have your AdSense ad code, you need to determine where to place the ad. In most cases, the sidebar would be your best bet. To place your ad, you’ll need to use WordPress’s widgets. You’ll find this under your WordPress dashboard’s “Appearance” section.
You can place your ads in appropriate places by using widgets.
Once you open the widgets tab, drag and drop the “Custom HTML” widget to the widget area you want to place your ad unit. Next, paste your Google AdSense code in there. However, for better ad placement control and tracking, we recommend you use a plugin like AdSanity.
Adding Auto-Ads AdSense Code in WordPress
Manually placing individual ads on different places of your site is a very time-consuming process. For a beginner, it can be a very challenging task.
Google introduced auto-ads to solve this very problem. The auto-ads feature allows you to add one snippet of code to your site and let Google AdSense determine the best location, ad size, and ad type for your site. The only caveat of this method is you have less control over the process.
To leverage the auto-ads feature, sign in to your Google AdSense account and click on the “Ads” tab. Next, click on “Get Code” to generate a code for your auto-ads.