neverblueads logo MarketLeverage logo Hydra Network logo neverblueads logo
logo  

A discussion of earning with the Best Affiliate Programs, SEO, Wordpress Blogging and General Motivational Ideas for Internet Publishers and Affiliate Marketers.


feedburner TwitterCounter for @rehoboth

Blog Icon How to Prevent Adsense Click-Bombing and Invalid Clicks

Posted in Google Adsense, Tips & Tricks by Dave on July 21st, 2008

Click BombI‘ve been using Adsense for over three years to monetize my sites but even though I’ve followed the Adsense TOS and never clicked on my own ads, I was actually banned from Adsense for supposed invalid clicks last November. It turns out I was the victim of a click-bombing by some disgruntled ex-Adsense publisher who was stalking the Adsense support forums looking for innocent victims to get their accounts banned by clicking incessantly on their ads.

I did manage to have my Adsense account re-instated a few days later - minus two months earnings - so since then I have been looking at various solutions to prevent any click-bombings of my account in the future. I’ve tried several commercial solutions that were bloated with additional options that were unnecessary for my simple applications. Finally, I decided to begin coding my own solution based on the KISS (Keep It Simple Stupid) model that has only one function : disable Adsense ads after they have been clicked on “x” amount of times.

Over the next few days I will be publishing the solution, code named “ClickDodger”, to aid other publishers avoid the pitfall of click-bombing or invalid clicks. I would sincerely appreciate any input on this project and will work with anybody interested in utilizing this code to add additional functionality as the need arises.

Starting With The Simplest Scenario

In order for to accurately record the number of clicks a website visitor has made, it would be logical to use a simple html tracking cookie to record events. Granted, a hacker or click-bomber could easily delete the cookie each time they’ve clicked enough times to set off the tripwire but we’ll keep this simple for the moment.

I’ve opted to use Javascript because the modern DOM model supports event handlers as well as the ability to generate content on the fly. Javascript is also a viable option because it can be used in any scripting language (PHP, ASP, ColdFusion, Ruby) in addition to plain html.

Displaying the Appropriate Ads

Working backwards, the code to display either an Adsense ad or an alternative ad network based on the tripwire settings would look like this :

<div id="banners" onclick="trackclick();">

<script language="JavaScript">

if ( clickCount > 2 ){
	document.write('
        <a href="http://www.pjtra.com/t/RD1FRklFPURASUk9RURISQ">
        <img src="http://www.pjtra.com/b/RD1FRklFPURASUk9RURISQ?sid=AFFBEST">
        </a>
        ');
}else{
	document.write('
        <script type="text/javascript"><!--
	google_ad_client = "pub-8299655316220106";
	/* C4G-Forum-728x90, created 5/9/08 */
	google_ad_slot = "3304568502";
	google_ad_width = 728;
	google_ad_height = 90;
	//-->
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
        ');
}

</script>
</div>

We have wrapped the banner code in a DIV element with the ID “banners”. The DIV also has an onclick event handler which calls a function trackclick() when a link within the DIV is clicked on. If the clickcount is less than 2, a Google Adsense ad is shown but if the clickcount is greater than 2, the PepperJam Network code is displayed.

Tracking Clicks Using a Cookie

Now that we have the code to display the appropriate ad block, we will need a Javascript handler to record the visitor’s clicks and set a cookie that keeps a running count of the number of clicks a visitor has made on an ad block. The Javascript code below is a basic implementation to handle these actions :

<script language="JavaScript">

var clickCount = readCookie();
if ( clickCount == null ){
    clickCount = 0;
}

function trackclick() {
    clickCount = parseInt(clickCount)+1;
    setCookie( clickCount, 2 );
    return true;
}

function setCookie( cookieValue, nDays) {
    var today = new Date();
    var expire = new Date();
    if (nDays==null || nDays==0) nDays=1;
    expire.setTime(today.getTime() + 3600000*24*nDays);
    document.cookie = "clicktrack="+escape(cookieValue)
                      + ";expires="+expire.toGMTString();
}

function readCookie() {
    var nameEQ = "clicktrack=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0){
            return c.substring(nameEQ.length,c.length);
        }
    }
    return null;
}

</script>

The script is rather simple. When the page loads, the script attempts to call readCookie and set a variable called clickcount. If readCookie() returns null (the cookie has not been set), then the clickcount is set to 0. The trackclick() function is called whenever the DIV we created in the previous step is clicked and it increments the clickcount and calls setCookie to set the incremented value.

This solution will work across all the pages on a site using the code and the Javascript can be stored in a .js file so it can easily be included into any page you wish to utilize it on. Although as I mentioned above, this method could be over-ridden if the clickbomber deletes the cookie each time the clickcount is maxxed, however, for most purposes, this application should suffice.

In tomorrows installment, we will be examining a more robust solution built on this example that uses PHP and mySQL to track the visitors IP address to ensure the click count can’t be reset by deleting the cookie.

Please feel free to leave comments on this article and I’ll be more than happy to address any questions or comments any of my readers might have.



Like this post? Subscribe to AffiliateBestPrograms RSS feed and never miss a post !!


del.icio.us:How to Prevent Adsense Click-Bombing and Invalid Clicks newsvine:How to Prevent Adsense Click-Bombing and Invalid Clicks furl:How to Prevent Adsense Click-Bombing and Invalid Clicks reddit:How to Prevent Adsense Click-Bombing and Invalid Clicks blogmarks:How to Prevent Adsense Click-Bombing and Invalid Clicks Y!:How to Prevent Adsense Click-Bombing and Invalid Clicks smarking:How to Prevent Adsense Click-Bombing and Invalid Clicks magnolia:How to Prevent Adsense Click-Bombing and Invalid Clicks segnalo:How to Prevent Adsense Click-Bombing and Invalid Clicks gifttagging:How to Prevent Adsense Click-Bombing and Invalid Clicks

Blog Icon Adsense Click Lock - Don’t Get Banned by Adsense

Posted in Google Adsense, Do No Evil by Dave on June 2nd, 2008

Numerous articles have been written about Adsense publishers becoming victims of click-bombing and having their Adsense accounts revoked with loss of all earnings. Although the Google Adsense team are very decent about reinstating your Adsense account if you reported suspicious activity, the cold fact is that even if they reinstate your account, you will lose any earnings prior to your account being deactivated.

I personally went through the horrible process of having my Adsense account sabotaged last year. Although I did report the suspicious activity and removed the Adsense code from the site that was under attack, the Adsense support team never responded to my report of suspicious activity and two weeks later I received the dreaded email that my account had been banned by Adsense. I appealed the banning, fortunately I had kept records of the sabotage incedent and eventually my Adsense account was reinstated - MINUS all my earnings for two months. Remember, Adsense pays the *month after* you reach $100 and I was clearing $100 per month for years so I actually lost two months of earnings.

As a precaution, I have been checking out a number of solutions to prevent invalid clicks and one of the software solutions I’ve been considering purchasing is Adsense Click Lock.

Here’s some of the details from their sales page…

blockquote Maximum Adsense clicks
You can select any number from 1 upwards. For each visitor to your site, this is the maximum number of Adsense ads that he or she can click on. Once a visitor has clicked on this number of ads, your Adsense ads are automatically hidden from that visitor.

Maximum Page Views
This feature provides a secondary protection mechanism and it is strongly recommended that you use it. You can select any number from 1 upwards, but a typical value is 3 to 5. For each visitor to your site, this is the maximum number of page views on which Adsense ads will be shown. If a visitor views more than this number of pages, your Adsense ads are automatically hidden from that visitor.

Timed Adsense Ads Hiding
You can have the ads hidden for an hour, 3 hours, 12 hours, a day, 3 days, 7 days, 15 days, 30 days or forever. The default is 3 days, which is generally more than adequate. This means that if a visitor returns to the site any time within 3 days of the ads being hidden, the ads will still be hidden. If they return to the site after 3 days, the ad click and page view counters will be reset - and Adsense ads will be visible again.

Replacement Ads
The software allows you to replace up to 8 Adsense ad blocks. To enter a replacement ad, select the number using the drop-down box, then type or paste the replacement ad into the large text box. To paste, right click inside the large text box and select “Paste” from the menu.

If anybody reading this article has had experience with this software and can offer an opinion about it’s usefulness, please leave a comment to this post because I’m certain there are many Adsense publishers out there who would find this solution very useful.

Happy Publishing,
Dave

Tags: , ,



Like this post? Subscribe to AffiliateBestPrograms RSS feed and never miss a post !!


del.icio.us:Adsense Click Lock - Don't Get Banned by Adsense newsvine:Adsense Click Lock - Don't Get Banned by Adsense furl:Adsense Click Lock - Don't Get Banned by Adsense reddit:Adsense Click Lock - Don't Get Banned by Adsense blogmarks:Adsense Click Lock - Don't Get Banned by Adsense Y!:Adsense Click Lock - Don't Get Banned by Adsense smarking:Adsense Click Lock - Don't Get Banned by Adsense magnolia:Adsense Click Lock - Don't Get Banned by Adsense segnalo:Adsense Click Lock - Don't Get Banned by Adsense gifttagging:Adsense Click Lock - Don't Get Banned by Adsense

Blog Icon Targeting Relevant Adsense Ads for Forum Owners

Posted in Google Adsense, Search Engine Optimization by Dave on February 6th, 2008

Here’s a follow-up on my post yesterday about Google Adsense Section Targeting. I’ve been testing it out on one of my most active forums where I’ve been experiencing dificulty getting relevant targeted Adsense ads related to the thread or folder content. It seemed the majority of the Adsense ads showing inside threads and folders were irrelevant despite optimization of the dynamic page’s title, meta keywords and on-page keywords. Irrelevant ads mean less clicks which translates to less earnings for ads taking up valuable space.

The question of “how to most effectively target content sections for relevant ads”, I decided a good strategy would be to wrap the Adsense Section Targeting code around the most concise area of keywords for each page on my forum. That area would be the “linktree”, the area of the forum that looks like this…

linktree

Forums and blogs have a tendency get indexed more frequently than static sites because of the constantly changing content, so I figured the linktree would be the most logical area that would have the most relevant keywords I’d want to target. I wrapped that area with the Google code and I was suprised how quickly the changes took effect and how my forum threads and folders are now getting perfectly targeted ads. I have to hand it to the team on this modification and I believe will be a big plus for advertisers especially when their ads are being displayed on a dynamic content site.



Like this post? Subscribe to AffiliateBestPrograms RSS feed and never miss a post !!


del.icio.us:Targeting Relevant Adsense Ads for Forum Owners newsvine:Targeting Relevant Adsense Ads for Forum Owners furl:Targeting Relevant Adsense Ads for Forum Owners reddit:Targeting Relevant Adsense Ads for Forum Owners blogmarks:Targeting Relevant Adsense Ads for Forum Owners Y!:Targeting Relevant Adsense Ads for Forum Owners smarking:Targeting Relevant Adsense Ads for Forum Owners magnolia:Targeting Relevant Adsense Ads for Forum Owners segnalo:Targeting Relevant Adsense Ads for Forum Owners gifttagging:Targeting Relevant Adsense Ads for Forum Owners

« Previous PageNext Page »

Categories
Archives

Resdaz Media
AffiliateBestPrograms © 2007-08 Resdaz Media LLC.
All Rights Reserved
Other Resdaz Media Network Sites:
Add to Technorati Favorites

BRDTracker BlogsByCategory.com
Find the best blogs at Blogs.com. feeds4all