How to Use Custom Google Adsense Ads and Make them Responsive on Your Blog

Many bloggers use Adsense and for most of them Adsense is the primary source of income. However, these days with the boom of E-commerce and Online shopping in India its getting replaced by Affiliate Marketing. In this article I am explaining you a simple technique using which you can display custom ads on your blog and make them responsive.

How to Use Custom Ads on your Blog:

Previously Google used to give this feature to only Premium Adsense publishers. But now this feature is available for all. You can use custom ads of any size of your wish that fits your blog layout.

To place custom ads on your blog. Login to your Adsense account.

Then go to My Ads, then head over to create a new ad unit.

There you can find Custom Size.

There you fill out the dimension of the ad which you want to put on your blog.

Take that code and place wherever you want to.

But the drawback of this custom size ad unit is that its not responsive. So, if you have users operating from different devices then you might be loosing some revenue. For this reason you have to make the custom ads responsive. Follow the tutorial below to make custom ads responsive.

How to make Custom Ads Responsive:

To make custom ads responsive you have to tweak the adsense code a little. This method is approved by Adsense department and you would not have to worry about the violation. This code is developed by Amit Agarwal from Labnol.org.

1. First you have to create custom ad unit exactly as the above procedure.

2. Here the width doesn’t matter but make sure the height is given correctly.

4. Now all you have to do is just put your publisher id at XXX, then ad slot id at “YYY” then give the height of the ad unit at ZZZ.

5. Once that’s done take the code and put wherever you want to on your blog either Blogger or WordPress.

Note: If you are using Blogger you convert the code and get the converted code and place it in your blogger template. We have implemented these type of ads on our sites www.allindiayouth.com , Alltop9 and www.alindiaroundup.com you can have a look.

Let me know if you have any doubts in your comments. I will get back to every comment on this post.

Imran is one of the best blogger in india i often visit his blog , there is lot of blogging subject available which is indeed helpful for new comers like me thanks for the post actually i dont have adsense account need to wait for 6 months then only i can apply for the adsense is it any quicker way to approve adsense before 6 months. thanks for the post and more expecting from you dude..

This is really an informative post. This type of ad format can also be created by changing data-ad-format=”auto” to data-ad-format=”rectangle” in your responsive ad unit. Thanks for sharing this video tutorial! 🙂

Great tutorial!!! I was looking for this for so long. I was using custom adsense ad unit on my blog and it was working fine on PC but it was not perfect for the mobile view as I was using a responsive template. After I cam across this post I implemented the method on my blog, since then it’s just working great and increased my earning too.

hell brother,,,if we modify as you said does it follows the rule of google ad-sense policy …i tried to on blog template but converting your code to xml is says error on save..these two && is error so i could not save and use your logic,,please help me ..

It all started when Facebook introduced a great feature for page admins to target the audience 'who liked a specific post of their page but not the page itself' to like the page by sending invitations to users asking them if they wished to like their page.

While the use of face recognition seems to be helpful and would decrease unauthorized image uploads, the idea of Facebook scanning every photo and using facial recognition to collect our biometric data is sure to upset some people.

About All Tech Buzz

On AllTechBuzz we cover wide range of Technology Articles. We have been educating people on various tools and technologies since few years. Currently, we are also running a Forum where our experts answer different queries related to Blogging and Technology.

About the Admin

Imran Uddin started his career as a Blogger, now runs a Tech company - All Tech Media Pvt. Ltd. After 6 years of spending in Digital Space, he has gained expertise in various fields of Digital Media and Marketing.