Force Responsive Adsense Ad Units to Show Ads of Specific Sizes

If you use Adsense as a primary method to make money on the internet then you really need to make sure you have optimised your ads well enough to get maximum revenue from Adsense.

Just remember, Not everything Google recommends will make you more money.

Google analyses thousands of accounts and gives recommendations to individual accounts on that basis. While most of the time, it may benefit you to increase your revenue but not all the time.

Like so many people Create a responsive Ad code and put it in their blog and think it’s the best thing they have done to make money from people who will visit from different sized handheld devices.

What they forget is, most of the time Google serves Ads with sizes that are boring and visitors don’t view them.

Google itself mentions that on of their best-performing sizes are 336×280 large rectangle, the 300×250 medium rectangle, the 728×90 leaderboard, the 300×600-half page, and on mobile the 320×100 large mobile banner

The best thing here to do is to force Google Adsense to show ads of specific sizes.

For example, to the Desktop users you can show the 728×90 sized ad, and for the Tablet PC users, the same Ad slot would show a 336×280 or 300×250 sized ad and for Mobile users, it can be either 320×100 or 300×250.

This can be done by making a small change in the Adsense Ad Codes if you know a bit of coding, it won;t be too tough for you to implement this.

Here is an example of code given by WebGlide.Com

<style type="text/css">
.adslot_1 { width: 320px; height: 100px; }
@media (min-width:500px) { .adslot_1 { width: 468px; height: 60px; } }
@media (min-width:800px) { .adslot_1 { width: 728px; height: 90px; } }
<ins class="adsbygoogle adslot_1"
<script async src="//"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>

In the above code, the same ad slot has been specified 3 different sizes depending on the browser width (scree size)

For browsers till the width of 800px, the 728×90 Ad will show, for browsers between the width of 800px to 500px (mostly all the tablet PCs), the 468×60 Ad will show and for browsers with less than 500px width (mostly all the mobile devices) the 320×100 Ad will show.

Also, the data-ad-format=”auto” from the Ads has been removed to force the specified sizes.

You can take the above code as it is and change the ‘Data-ad-client’ with your Adsense publisher id and ‘Ad Slot number’ for each of the responsive ad your want to force specific sizes on.

These codes comply with the Adsense Policy as it just changes the size of the Ads.
Make sure you use Responsive Ad slots for this.

There is an easier way to do it, the WordPress Plugin way.

The Responsive Ad plugin created by Thomas Maier makes life easier for those who run away from codes. I would strongly suggest you use this method if you are not confident you will put right Adsense codes as one fault can mean No Ads showing or getting a ban on your Account.

The Responsive Ad plugin does the same job without you having to look and change codes for every Ad. It gives you easy options to force your Responsive Ads to specific sizes for different devices.

It also lets you hide ads depending on the device used. For Example, you and choose to display an Ad to Tablet users and Hide it for Mobile users or vice versa.

Use can use QUADS plugin to insert these Ads anywhere in your blog and manage all the Ads from one place.


Related Articles


13 Stunning Handpicked WordPress Themes for a Tech Blog

At Asiogroup, we keep showcasing WordPress themes with Great...

5 Best Keyboards for Writers

It is said that the Pen is mightier than...

How to Move A YouTube Channel from One Google Account to Another

In this post, we will be talking about how...
- Promotional Offer -spot_img