Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

How I Got My Adsense Earnings Back Up

Adsense Tips



11:01 am on Jan 15, 2014 (gmt 0)

Following tips from very helpful users on this site I would like to share how I got my AdSense earnings back up. I contacted G support about a massive drop in earnings which started mid-November and they stated I recently had a large amount of invalid accidental clicks and it was on the rise. I move the ads away from my dropdown menu to a new location down the page. After 3 weeks G got back and said the invalid clicks have decreased and thanked me for my efforts. But it wasnít until a week ago that I have seen the high paying advertisers back on my site. My earnings for the last 6 days are back to the best rates for each day - I hope this continues :)

A number of factors may be involved, not sure if the advertisers pulled back until the New Year or if the changes implemented on my behalf fixed my earnings. I am not sure if my steps are still 100% optimal but this is what I done.

1. Got rid of the 320*50 ad, this was only used for small mobile phone screens and the CPC and CTR was very bad so I replaced it with a 300*250.

2. Tried the responsive ad unit but this also returned a low CPC and medium CTR. I replaced the responsive ad unit to use JavaScript code. The JavaScript code selects one of my ads depending on the screen resolution. All my ads are made up of 300*250, 336*280 or 728*90. For my two most popular pages once in hit the mobile phone resolution I redirect to a mobile page with two 300*250 ad units. So my two most popular pages turned into four most popular pages. Note: these pages are really 1000ís pages since I querystring the id to display the relevant content so it was important to tailor these pages for mobile, tablet or desktop resolution. Using BOOTSTRAP (which is a brilliant tool for displaying on different resolutions and is free) I used CSS to hide the ads depending on the screen resolution but was told on this site that this is against Gís rules since an ad is served (page view count incremented) but hidden so thatís why I made sure to display all ads served (JavaScript) or redirect to a mobile page.

3. I used this website to check which advertisers are currently advertising for my country/keywords - [ctrlq.org ] wish I knew about this website in November but all ads are currently displayed on my site.

Device Overview
Desktop = 64% of users
Mobile Phone = 22% of users
Tablet = 14% of users

Earnings Result
Desktop - 50% of earnings
Mobile Phone - 30% of earnings
Tablet - 20% of earnings

336 * 280 - highest CPC and CTR
250 * 300 - High CPC (almost the same as the 336*280) small bit lower on the CTR
728 * 90 - half the CPC of above two and lower CTR

Hope these tips help someone as I got lots of helpful tips on this site from netmeg and others and would like to thank everyone who advised me. Thanks.


1:36 pm on Jan 15, 2014 (gmt 0)

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Hi Ger02!

That's an excellent post! For the JS used to show or not show ads, are you using the code posted on Labnol.org? [labnol.org]

As far as previewing your own AdSense ads via different countries, members might wish to limit how much they do this, per recommendations by the AdSense team:


Can I view my own site without generating invalid impressions?

Yes, you're welcome to view your own pages without generating invalid impressions. Simply viewing your pages yourself will not jeopardize your good standing in the AdSense program - however, please continue to avoid clicking on any ads, and don't reload your pages excessively. We take the issue of invalid clicks and page impressions very seriously and have a dedicated team of specialists, as well as automated systems, to flag and review any unusual activity.


3:35 pm on Jan 15, 2014 (gmt 0)

Hi martinibuster I used this code [exisweb.net ] But the main point is that I have split my two main pages in to four pages. I now have two new small mobile phone screens which serve two 300*250 ad units. My current two main pages serve everything else (tablet and desktop screen) with the 3 ad units 300*250, 336*280 and 728*90 which all fit perfectly. Bootstrap has a Small Device (mobile phone) screen width and everything else so this suits me fine. I have tested these pages on iPhones, Samsung phones and different desktops and tablets and the ads seem to be displayed correctly. The JavaScript code is mainly used for generic pages which either displays the 300*250, 336*280 or 728*90 ad unit depending on the users screens width. The generic pages redirect to the mobile page or normal page depending on the users screen width. My main aim is to display the 336*280 ad because this is highest earning ad for me but itís too wide for mobile phones and looks bad on large desktop screens but strictly speaking I could just use the JavaScript to display the 300*250 for mobile phone or the 336*280 ad unit for everything else. I tried most of the other ad units and found the three I use as my main earners. Also you will need to make sure if a user comes from a mobile phone search engine and lands on one of the non-mobile phone pages to display the two 300*250 and NOT serve and hide the 728*90.

In relation to my 3rd point, I try to minimise the amount of times my pages gets refreshed by me - I obviously donít keep clicking F5 on my browser to see the variety of ads being served. I am comparing to the ads I have seen served over the last few days. I am aware hitting F5 (or constantly viewing my own ads) will incorrectly alter the AdSense stats with false page views and lower the CTR and will stop G serving ads that should be served as they would probably start to think they should serve different ads as the current ads are not clicked (by me). But when I type in the keywords of my pages into ctrl.org and select my current country I see most of those ads back appearing on my site.

Hope this explains if not let me know. Also I am not sure if this is the best solution for you (and I still have minor issues which I need to address) but as I said my earnings are now back up so this has worked for me.



4:05 pm on Jan 15, 2014 (gmt 0)

I also forgot to mention my mobile phone pages have most of the "nice" non-necessary functionality omitted and this in turn speeds up my website for mobile phone browsers whilst still offering them the critical functionality.


4:24 pm on Jan 15, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month

Looks as though Adsense support has been useful. I'm quite impressed.


4:40 pm on Jan 15, 2014 (gmt 0)

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Hi martinibuster I used this code...

Heh. That page you linked to lists code from the site I linked to. ;)

Nevertheless, the post on that site has a good warning:

When I take a close look at a theme I notice they all seem to be doing the same thing: extraneous ad blocks are set to display:none; when the viewport is mobile (or even tablet) sized.

This is typical of most responsive sites, but if you are running a standard Google Adsense Ad Unit, you are breaking the rules.

Even if the div containing the ad unit is hidden, the Javascript is still executed and the ad is still rendered Ė counting as an impression for the advertiser.


5:52 pm on Jan 15, 2014 (gmt 0)

Yes I agrees with CSS display:none will count as an ad served but (and correct me if I am wrong) if you use the code below on a mobile phone no ad unit is displayed or counted as an ad served so is fine to use and abides with G rules.

<script type="text/javascript">// <
var width = window.innerWidth || document.documentElement.clientWidth;
google_ad_client = "ca-xxxxxxxxxxxxxxxx";
if (width >= 800) {
google_ad_slot = "ad-unit-1";
google_ad_width = 728;
google_ad_height = 60;
document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>");
} else if ((width < 800) && (width > 550)) {
google_ad_slot = "ad-unit-2";
google_ad_width = 468;
google_ad_height = 60;
document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>");


5:58 pm on Jan 15, 2014 (gmt 0)

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

The blog post questions if the code breaks when the browser is resized, like if the phone is turned sideways to landscape view mode. What is your experience?


8:04 pm on Jan 15, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month

How does knowing #3 help you get more earnings?


9:46 pm on Jan 15, 2014 (gmt 0)

martinibuster I have all ad units centred so if its turned sideways the 300*250 ad is still displayed in the middle of the page I know not ideal. Whatever ad is loaded on the initial page load will be displayed for the duration of that page unless the page is refreshed with the new view mode. So if a long 728*90 ad is loaded on the landscape view mode and the user turns the tablet sideways to portrait view mode the long ad is still in view. However by using the bootstrap CSS class ďhidden-xsĒ I can hide this in portrait view so my page will be fine but yes this is the only problem I see and I canít see this happening much.

Dethfire your correct #3 does not get me more earnings but if I am not getting clicks and cannot see the usual top paying advertisers similar to my December month. For December I was seeing lots of YouTube and Google Adwords ads. I can check if the advertisers are still running ad campaigns for my region/keywords or if Google have protected the advertiser by not serving those ads on my site because of invalid accidental clicks. So itís helpful to know thatís all.


10:14 pm on Jan 16, 2014 (gmt 0)

10+ Year Member

Does anyone know if the labnol code conforms to Adsense terms of use?


12:18 am on Jan 23, 2014 (gmt 0)

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

This claims that it's ok to use
http://www.labnol.org/internet/responsive-google-ads-approved/27872/ [labnol.org]

Here is some guidance from Google

Featured Threads

Hot Threads This Week

Hot Threads This Month