[How-To] Disable Adsene Ads from Showing Up for Logged In Users in WordPress

As a Adsense Publisher, You are strictly not allowed to click on your ads and Google definitely has a way to make out if you clicked on your Ads. The way out to prevent that from happening is by disabling the ads from showing up for any of the logged in users of the website. 

In order to ensure that Adsense Ads are not shown to logged in users of your WordPress blog, add the following lines of code into your WordPress theme. Add these lines of code within the theme files referencing Adsense ads.
if (!is_user_logged_in()) {
// Insert your adsense code here
}

Adsense Earnings

Image: Adsense Earnings

The above code makes use of the boolean function is_user_logged_in() which returns true if the user is logged in. The above code insertion into your theme files will ensure that the Adsense Ads are displayed only for user’s which are not logged into the WordPress system.

 

Therefore in short, after inserting this code,  if you are the author of your blog and logged in, you wont get to see the ads.

Via

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

Advertisements

[Adsense] Prevent your Competitors Ads from Showing up in your Website

We often hear about scenarios wherein Ads of Competing businesses get shown up as part of the Adsense Ads showed on your website. This certainly is not the best way of growing your business, However, this can be prevented by adding specific setup rules in your Adsense account. This post describes a step by step process for setting up Competitive Ad Filter in Google Adsense.

If you are an Adsense Publisher and would like to prevent your competitor’s ads from being shown on your website as part of the Google Adsense Ads which are dynamically showed to your end users based on the keywords and other related terms, follow the steps below. (Click on the images for a detailed view).

1.) Login to your Adsense Account.

Adsense Setup Link enables you to setup Google Adsense for your site.

Adsense Setup Link enables you to setup Google Adsense for your site.

2.) Click on the tab which says Adsense Setup.

3.) Once inside Adsense Setup, click on the link which says Competitive Ad Filter. 

Setting up Adsense to prevent Competitor's ads from being shown in your site.

Setting up Adsense to prevent Competitor

The Competitive Ad Filter enables you to block specific ads, such as competitors’ ads, from appearing on your pages. Entering a more general URL will block a wider range of ads; entering a more specific URL will block a smaller range of ads. For example, by entering a top level domain such as “example.com”, you’ll also block all ads that link to any sub-directories of that domain, like “forums.example.com”. Review the examples below to learn how you can create filters that will block only the range of ads you want.

Enter the URLs of your comptetitor's website or business

Enter the URLs of your comptetitor

4.) Specify URL’s of your competitors website ( Ads pointing to these URL’s shall then be filtered before being shown to your site’s end visitors) for various Adsense services like Adsense for Content, Adsense for Search and Adsense for Feeds. Click on Save Changes once done. 

You have now setup your Adsense account to filter your competitors ads before being shown to your site visitors. 

Also, as a general tip, never click on the ads on your Own Website. Google definitely can figure out if you are clicking on your own Adsense Ads.

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.