![]() |
How to create an AdSense ad unit |
Nowadays, AdSense provides two types of ad placement method: Manual ads, and Auto Ads. Both auto and manual ads have different ad formats.
![]() |
AdSense Auto Ads |
![]() |
In-page ads |
Manual Ads: The main purpose of this post is to show you how to create different AdSense ad units manually. According to my experience, manual ads are more profitable than the auto ads for blogs and small website. Because manual ads are always in your control and you can change the ad style, size or placement at any time.
There are four types of ads available:
- Text and display ads,
- In-feed ads,
- In-article ads, and
- Matched content ads.
The “Text and display ads” offers you to create varieties of ad formats such as Horizontal banner, Vertical banner, Rectangular, Responsive ad, Custom Size, and Links ads.
![]() |
AdSense ad sizes |
To remember different ad units, you can include the three parts in the ad unit name:
Website name (On which you want to place the ad)
The place (On which area of the site you want to show the ad), and
Size or type of the ad (Specify whether it is horizontal or vertical and what is its size).
For example: If I have to create a rectangular ad unit to show it in the sidebar of my blog, I will name my the ad unit as follows: “DigitHelps-Sidebar-300×250”
Let’s go and create an ad unit on the AdSense dashboard:
- First, go to www.adsense.com
- Click Ads below the Home tab on the AdSense dashboard.
- Click Ad units and then
- Click +New ad unit.
![]() |
Creating AdSense Ad |
After clicking the “+New ad unit“, select “Text and display ads” on the next screen.
On the next window, first, you have to type the name of the ad unit. You can type the name of the ad as per the method shown above, or you can write as per your requirement.
Then select an ad format by clicking on small up-down arrows next to the “Recommended” and select an ad format from the dropdown list. There are 7 types of ad formats available. You can choose a format as required an select the ad size.
![]() |
AdSense Dashboard |
After selecting an ad format, now you can select the ad type. There are Three types of ad available:
Text and Display ads: This ad format displays both graphical and textual advertisements and also the recommended ad format.
Display Ads only: This type of ad displays only graphical ads like images or other rich media formats.
Text ads only: Displays only textual ads.
![]() |
Select ad type |
Right below the ad type, there are three other options. Text ad style, Custom channel and If no ads available. It is not mandatory to change any of these options. You can leave it as default and you can change it later if necessary.
Text ad style: Under this tab, you can choose a pre-defined ad style or create your own style such as change the color of ad link and text, change the background color of ad, change ad border color etc.
Custom channel: Using Custom channel, you can create groups of different ad units to tracking AdSense ad performance of different ads and location of ads on a page.
If no ads available: Sometimes, Google AdSense unable to show advertisement on all the ad locations. In that case, AdSense asks you if any targeted ads are not available, then what action should be taken on that ad placement? Here you can choose any one of the following options:
What to do if no ads available |
Now we have reached the last stage of creating our ad. After setting all the options properly, you can finally create an ad unit and generate the ad codes just by clicking “Save and get code“

After clicking “Save and get code“, the ad unit codes will be generated on a new window. Now copy the HTML codes and paste it in a text editor like Notepad and close the window. Now save the text editor having the ad codes, so that you can implement the ad codes on your site at any time without opening your AdSense account.
![]() |
AdSense HTML ad codes |