Adsense pays for the bandwidth on most blogs including this one. Google is very strict with their Adsense Terms and Conditions and anyone serious about keeping their account will follow the guidelines.


Advertise With Us

Wordpress provides an inline preview screen for authors to view the post before the post has been published. If you have Adsense code in your Wordpress theme template, the Adsense will also show in your post preview screen.

Viewing Adsense ads in the preview screen is probably a violation of the Adsense Terms and Conditions. Although a technical breach, this alone is probably not enough get you banned from Adsense.

On the other hand, clicking on your own ads will get you kicked out in a heartbeat. If your ads show in your preview screen, the chance of an accidental click on your ad is increased. Anytime you see your own ads you run the risk of accidentally clicking them.

If you’re anything like me, you might view your post 10 times in the preview before you actually publish. Google doesn’t like proof-reading bloggers artifically inflating Adwords advertiser’s impression rates. Seeing ads in your Wordpress preview screen is just bad practice.

Seeing your Adsense ads in your preview screen can also be used to preview what ads might show in the post. This is another way of wasting advertiser impressions and Google doesn’t like this. If you want to preview what Adsense ads will show in your post, use one of the Google Adsense preview tools instead.

Face it, there is no good reason for you to see ads on your own blog.

This code provided by Performancing will block logged users from viewing ads

<?php
if ($user_ID > 0)
{
echo "Logged in";
}
else
{
echo "<em>INSERT YOUR ADSENSE CODE HERE</em>";
}
?>

Be sure to change your Adsense code double tick marks ” to single tick marks ‘ so the code works.

Place this code in your Wordpress template and the words “Logged in” will show in place of your ads if you are logged in. Non-registerd users get the real ads.

Placing this bit of code stops Adsense from showing to registered users so it also blocks Adsense from showing in the Wordpress preview screen. This code will virtually eliminate any chance of accidentally clicking your own Adsense ads.

There are other methods of blocking your ads based on your IP address. These methods don’t work as well as blocking ads based on user status because ads are still served even if you are blogging or browsing your own site from a location other than your normal IP.

Google won’t be able to detect that you are the one browsing from a remote location, so those accidental clicks probably wouldn’t get you banned but there are other advantages to blocking your own adsense ads.

Check your logs. You might be your own best fan! If you are the one doing most of the browsing on your own site, you are seeing worthless ads that are increasing your ad impressions for no reason. If you block yourself from seeing the ads on your blog, not only do you reduce the chance of accidental clicks, but you also have a more accurate representation of the adsense impressions that are being served to true visitors and not yourself.

Blocking yourself from seeing ads on your blog is a good idea but you also need to see your page with the proper ad placement for styling issues.

Our solution is to modify the reliable code from above to serve Google’s pictures of their ads to our writers and pass the actual adsense code to visitors.

Here’s how we do it

<?php
if ($user_ID > 0)
{
echo "<div id='banner'><img src='https://google.com/adsense/images/banner.gif'></div>";
}
else
{
echo "<em>INSERT YOUR ADSENSE CODE HERE</em>";
}
?>

This bit of code delivers the .gif file from Google’s site to our staff. This helps with styling issues and prevents accidental clicking regardless of IP address. As long as our writers are logged in, they get fake ads instead of the real thing. We could serve blank space, but seeing where the ad goes on the page gives a more accurate representation of the visitor experience.

"Block Yourself From Seeing Adsense On Your Blog" by Tommy was published on February 17th, 2007 and is listed in Wordpress.

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

Subscribe without commenting

Click Screenshots To Enlarge

  • Wordpress Theme Skin for Shifter - Over It (Glass)
  • Change between thin, wide and full width layouts without destroying your site structure.
  • Wordpress Theme Skin for Shifter - Over It (Light)
  • Choose between single or double sidebars and then shift sidebar width or position with the flip of a switch.
  • Wordpress Theme Skin for Shifter - Lizard (Dark)
  • One, two or three column layouts have never been easier.
  • Wordpress Theme Skin for Shifter - Brown
  • 15 skins let you choose the end look for your site without destroying the structure of your perfect layout.
  • Wordpress Theme Skin for Shifter - News Red
  • Shifter makes designing your site easier, faster and more enjoyable - all with the flip of a switch!

Wearing the Basic Skin for Shifter by Buzzdroid