On: 2007/06/28 Viewed: 51009 times

Warning: hefty explanations and documentation. On a rush? Give the demo a try. Chances are you'll understand right away what and how. Then download. Then please read here.

Current version: 2.0 for WordPress 2.5+ See below for older versions.

You most certainly have two types of visitors on your blog : some returning readers, and a majority of first time visitors. Returning readers come to your site for its content and for what you write. First time visitors, and mostly search engine visitors, come because they are looking for something particular, look at the page, and leave.

The first obvious thought that comes to mind when you want to monetize your blog is: "I'm going to put ads and banners everywhere". By doing so, you won't add any value or service to regular readers, who are not likely to click on your ads. By doing so, you'll also probably won't do justice to your finely handcrafted pixel polished WordPress theme. By not serving ads to your regular visitors, chances are you'll both lose little money and show your readers you're treating them differently.

Therefore, the second obvious thought about blog monetization is : "I wish I could display a lot of ads to those coming once never returning readers, but not bother my regular fans". Enter Who Sees Ads, the ultimate ad management plugin.

Who Sees Ads : the Ultimate Ad Management Plugin

Who Sees Ads ?

So, who sees ads ? Now it's up to you.

Who Sees Ads is an advanced ad management plugin that lets you decide who will see your ads, depending on user defined conditions. The association of an ad and these conditions is called a context: a set of circumstances you define, that will eventually display or not an ad.

For instance, you could consider the following criteria: Is the visitor a regular reader? Does this visitor come from a search engine? Is the visitor currently reading a recent post, or something really old?

Live demo

The plugin is active here, to display an ad on top of the right sidebar. Depending on the context, you could see it or not. Its display rules are:

  1. display if visitors comes from a search engine
  2. don't display if the visitor is a regular reader
  3. always display

The ad behavior is defined by the first rule that is matched. Visit the main page of my blog: as I've defined a "Regular reader" here (someone who has read at least 2 pages over the last 10 days), you're now a regular reader, hence rule #2 apply and you don't see the ad any longer. Now go to Google and click on the first result to come back here: rule #1 now applies, and you'll see the ad.

Define Contexts

Ad code + Display rules = Context

You already probably have the Ad code : it can be plain HTML (a text link, a image banner) or Javascript (your Adsense code). Let's define the display rules.

Who Sees Ads offers a very intuitive and powerful visual interface to create your context and pick display rules, in which you naturally select and order them with your mouse. The interface also offers a convenient way to duplicate, rename and delete your contexts.

Have a look and play a bit with this demo. You'll love it.

Display Rules

Possible rules

By default, you can pick or mix any of the following rules :

  • If Visitor comes from a search engine, display / don't display
  • If Visitor is a regular reader, display / don't display
  • If Post is older than XX days, display / don't display
  • If Visitor is logged in, display / don't display
  • If Date is between specified date interval, display / don't display
  • If Ad has been showed less than XX times, display / don't display
  • If This visitor has viewed this ad less than XX times, display / don't display
  • If All previous conditions fail, try another context
  • If Any condition, display / don't display

The ad behavior will be eventually decided by the first rule which is matched. For instance, if you want to display an ad only for search engine visitors, you'll pick the following :

  1. If Visitor comes from a search engine, display
  2. If Any condition, don't display

If no rule is matched, nothing displays, so the second rule in the above example is actually optional.

I made up a list of example display rules, be sure to check them.

Advanced Display Rules

Advanced custom PHP rules You can use PHP functions and make your own custom advanced display rules. Want to display something on home page only ? if (is_home()) display will be your custom display rule.

You can use PHP built-in, WordPress internal, or your own functions. Your brain is the limit.

Please note: you obviously need to know a bit of PHP in order to use the advanced display rules. By default, they are not enabled. If you want them active, edit the beginning of the script and set $wp_ozh_wsa['iknowphp'] to true. This requires your agreement on being on your own if you break your site or if ads don't show as expected.

There are two advanced custom display rules :

  • If ( condition ), display / don't display
  • If !( condition ), display / don't display

The if and if not rules are working the same, I just thought it could be more convenient in some cases to use an if not rather than an if, and this way you also have two custom rules for the price of one :)

Again, check the example display rules to get an idea of how powerful it is.

Features

Simple and Effective Ad Management

Even if you're not using Who Sees Ads to fine tune display rules, it will make your life easier. Pasting <?php wp_ozh_wsa('google-336-280') ?> in your PHP templates such as sidebar.php is a lot easier than cut and pasting 10 lines of javascript, especially if you decide later to change the javascript across multiple files.

Use it inline or in PHP templates

Create contexts and display ads either in your PHP files on within your posts and pages :

  • <?php wp_ozh_wsa('mybanner') ?> in your PHP files such as sidebar.php
  • <!--wsa:mybanner--> within posts and pages

Visual interface

If you haven't tried it already, play with the demo. It's not functional of course, but it will show you own the interface lets you visually create contexts, and easily rename, duplicate and delete ads.

Help Wizard

A togglable introductory help contains a handy wizard that will assist you, creating your two first rules. Click on the image for a screenshot of the Wizardry.
Wizard !

Posting help

Within the Post/Edit interface, you'll find a convenient drop down selection to easily insert context you will have created (if you create just one context, the select is replaced with a button)
Editor button

Google Adsense and Yahoo Publisher Compliant

Per terms of use, YPN (TOS) and Adsense (TOS) impose a maximum number of ads in a page, as follow (as of writing):

  • YPN: 3 ads per page
  • Adsense :
    • 3 ads
    • 2 search boxes
    • 3 link units
    • 3 referral units

Who Sees Ads fully complies to these restriction, and will display ads of a particular type up to the maximum number allowed.

Google Adsense and Yahoo Publisher Compliant, part 2

Per terms of use, YPN and Adsense don't allow ads on error pages such as 404 pages, and on pages that are not viewable by their system.
Who Sees Ads also complies to this policy, and ads won't be displayed on 404 error pages, and on draft posts a publisher is previewing.

Admin Clicks Safety

Admin Click Safety Admin Click Safety is an option that will prevent you from accidentally clicking on your own ads (Adsense or Yahoo Publisher), replacing them by a placeholder when viewed by the blog admin.
Regular visitors, of course, will see actual ads if applicable. Days of "oops I clicked it!" are over.

Widget support

Who Sees Ads is now supporting widgetized theme for easier ad management.

Custom Preferences Hacking

Advanced users with some PHP editing knowledge can now define a custom set of preferences or behaviors that will override Who Sees Ads' defaults. The plugin comes with an example my_options_sample.php file. Rename it my_options.php, edit it, and never lose any change you'd make when you upgrade the plugin.

3rd party plugin compatibility: Adsense Deluxe and Adsense Manager

For those who are already using Adsense Deluxe or Adsense Manager to manage your Adsense ads, you can seamlessly make the transition to Who Sees Ads and give it a try without uninstalling them. Instead of pasting the actual Adsense code when you create a context, just enter something like the following examples, depending on what plugin you're using:

CODE:
  1. <!--adsense#mybanner-->
  2. adsensem_ad('mybanner')
  3. adsense_deluxe_ads('mybanner')

Please note: compatibility with these 2 plugins has been implemented to allow easy testing before adopting. I personally find Who Sees Ads much more powerful and efficient, and don't see the point of using it side by side with another ad management plugin. I will not continue support of these plugins if their code evolves and changes so that it breaks with my plugin.

Rotating Ads

You can define only 1 context and assign it as much ad code as you want. You just need to specify your custom code separator in my_options.php and you're done. Example, defining the string *** CODE *** as a separator:

CODE:
  1. <img src="banner1.jpg" alt="Banner 1" />
  2. *** CODE ***
  3. <img src="banner2.jpg" alt="Banner 2" />
  4. *** CODE ***
  5. <img src="banner3.jpg" alt="Banner 3" />

Download

Download the plugin :
ozh-who-sees-ads.zip
Extract and upload to your blog, preserving directory structure if any.
Note: download counter here and stats on wordpress.org may differ and reflect the number of downloads before this plugin was hosted on the plugin directory

PHP Template usage

The regular PHP call you will insert in your PHP templates is the following:

PHP:
  1. <?php wp_ozh_wsa('myad'); ?>

However, you can pass an additional parameter to turn off output and have the ad code returned instead:

PHP:
  1. <?php $code = wp_ozh_wsa('myad', false); ?>

By default, the plugin returns an HTML comment when no ad has to be displayed, for instance:

HTML:
  1. <!-- WSA: rules for context 'myad' did not apply -->

A complete example of how to use WSA with your own functions would be something like:

PHP:
  1. <?php
  2. $code = wp_ozh_wsa('myad', false);
  3. if (strpos($code,'<!-- WSA') !== false) {
  4.     // plugin returned actual code, do something with it
  5.     ...
  6. } else {
  7.     // plugin returned no code to be displayed
  8. }
  9. ?>

Examples and advanced use

The obvious usage of this plugin is to display ads with rules as :

  • Display ad when user comes from a search engine
  • Don't display ads to my regular readers
  • Display ads on old stuff, don't display on fresh posts

But you can also :

Greet your returning visitors

You can display ads, or really anything. For instance, display something only to your regular readers: a "welcome back" message, or a special offer you don't want them to miss.

Geo target !

In conjunction with my own IP to Nation plugin, you can easily target visitor from a particular country. For instance, you've always wanted to display Yahoo Publisher ads to American visitors only, as Yahoo suggestscompells? Easy, your context simply has to use the following custom if rule:
if (wp_ozh_getCountryName(0) == 'United States'), display

Check the example display rules for more ideas of usage.

Older version

Who Sees Ads is still available (yet not maintained any more) for WordPress 2.3.3 and earlier. Note that I strongly recommend always running the latest version of WordPress.
Download: Who Sees Ads 1.3.3 for WordPress 2.3.3-

Feedback

I'm always happy to receive feedback. If you like this plugin, tell me, and more important, tell your readers. Have an idea of a smart use? Tell me! Does it miss a kick-ass feature? Tell me! Do you want to marry me? Tell me!

Related posts

Metastuff

This page "Who Sees Ads ? Manage your Ads, Control Who Sees Them" was posted on 28/06/2007 at 10:04 pm
Watch this discussion : Comments RSS 2.0. You can trackback this post from your own site

304 Blablas

    Pages: « 1 2 3 [4] 5 6 7 8 9 10 1116 » Show All

  1. 61
    Gewinner Plugin-Wettbewerb - Finger.Zeig... Germany »
    pingback on 26/Aug/07 at 9:37 pm # :

    [...] Consolation Prize [...]

  2. 62
    WordPress Plugin Competition: Woohoo, I ... United States »
    pingback on 26/Aug/07 at 9:39 pm # :

    [...] as “Consolation Prize”:) at the WordPress Plugin Competition, with my (uberleet) plugin Who Sees Ads (also known as “The Ultimate Ad Management [...]

  3. 63
    Nico Nemil | Filipino Web Developer | Pi... United States »
    pingback on 26/Aug/07 at 9:44 pm # :

    [...] consolation prize winner is Ozh for Who Sees Ads. WhoSeesAds is a wonderfully useful plugin that lets WordPress users determine whe sees the ads on [...]

  4. 64
    Ganadores del concurso: Wordpress Plugin... United States »
    pingback on 27/Aug/07 at 3:50 am # :

    [...] Premio consuelo: Who Sees Ads [...]

  5. 65
    WordPress プラグイã... United States »
    pingback on 27/Aug/07 at 4:04 am # :

    [...] Who Sees Ads - 訪問者の条件(初めてきた人か常連さんかなど)によって表示する広告をコントロールする。賞品として Pajama Mommy よりホスティングサービスとWallhogs.com より 48″ wallhog が送られる。 “にゅーす” タグの最近の投稿WordPress 2.3 リリーススケジュールMovableType 4 対 WordPress 2.2bbPress の日本語リソースSandbox テーマコンテストの勝者は…WordPress 2.2.2 用日本語リソースと日本語リソース入り WordPress 2.2.2 [...]

  6. 66
    Wordpress: Lista de plugins no recomenda... United States »
    pingback on 27/Aug/07 at 7:16 am # :

    [...] ganador del premio de consolación ha sido Ozh por su plugin Who Sees Ads. WhoSeesAds es un maravillo e útil módulo que permite a los usuarios de WordPress determinar que [...]

  7. 67
    Wordpress plugin competition: i vincitor... Italy »
    pingback on 27/Aug/07 at 10:11 am # :

    [...] Premio di consolazione a Ozh con Who sees ads. [...]

  8. 68
    WordPress Plugin & Mod Competition W... United States »
    pingback on 27/Aug/07 at 1:34 pm # :

    [...] Prize Winner: Ozh for the Who Sees Ads [...]

  9. 69
    破百的老兵 United States »
    trackback on 27/Aug/07 at 5:22 pm # :

    WordPress Plugin 大賽...

    前不久 Weblog Tools Collection 辦了一項 WordPress Plugin Competition 的比賽,今天結果出爐了:

    佳作是 Who Sees Ads,可以讓你控制廣告要在什麼情況下出現。基本的想法是:常客不會去點廣告所以也不....

  10. 70
    WordPress Plugin Competition Winners United States »
    pingback on 27/Aug/07 at 7:03 pm # :

    [...] Prize: Who Sees Ads by [...]

  11. 71
    CompetiÅ£ia pluginurilor wordpress, c&... United States »
    pingback on 28/Aug/07 at 1:21 pm # :

    [...] de consolare - Câştigat de Ozh cu Who Sees Ads. Pluginul introduce blocuri de reclame în anumite porţiuni ale blogului dar care să [...]

  12. 72
    â—„ Web2.0 tool â–º » Ult... Italy »
    pingback on 28/Aug/07 at 6:36 pm # :

    [...] Ultimate ad management plugin è un plugins per Wordpress che ti permette di configurare in modo dettagliato le esposizioni dei tuoi banner adsense grazie a delle istruzioni condizionali che puoi configurare come meglio ritieni opportuno. [...]

  13. 73
    alialtugkoca » WeblogTools'un Word... United States »
    pingback on 28/Aug/07 at 11:32 pm # :

    [...] ödülü: Who Sees Ads e gitti,Bu eklenti blogumuzdaki kullanıcıların ziyaret sıklığına göre,yazının yayınlanma [...]

  14. 74
    Who Sees Ads WordPress Plugin - WordPres... United States »
    pingback on 28/Aug/07 at 11:50 pm # :

    [...] Who Sees Ads is on the road to becoming one of the most useful plugins released for the commercial or profit blogger. Of course, much like the AdSense Deluxe plugin, this plugin can potentially be used to display various types of information however you want and to whomever you want, not just AdSense or contextual ads. [...]

  15. 75
    Webolution: Blogging is Changing. Foreve... United States »
    pingback on 29/Aug/07 at 3:50 am # :

    [...] for Wordpress are stepping up to the plate as well. I’ve been playing around with Ozh’s Who-Sees-Ads plugin here on Zoomstart. It allows you to target ads using any number of parameters, both default and [...]

  16. 76
    Skylog » Blog Archive » link... Italy »
    pingback on 29/Aug/07 at 8:18 am # :

    [...] Who Sees Ads ? Manage your Ads, Control Who Sees Them (tags: wordpress plugin) [...]

  17. 77
    Wordpress Plugin Competition - Winners |... United States »
    pingback on 29/Aug/07 at 12:30 pm # :

    [...] Plugins Consolation Prize Winner - Ozh for Who Sees Ads Wordpress [...]

  18. 78
    5 Ways To Get Your Blog Ready For Direct... United States »
    pingback on 29/Aug/07 at 6:02 pm # :

    [...] you still want to use CPC Ads or affiliate links and have a WordPress powered blog, then you should install this WordPress plugin to better target who sees your Ads. If you get a lot of search engine traffic the best way to [...]

  19. 79
    Leonardo Arteconi Italy »
    commented, on 30/Aug/07 at 2:25 am # :

    I suggest you an extra display role.

    There is a lot of script that track the click on adsense and YPN network. Why doesn't add a control about the numbers of clicks during a time period?

    It should be very useful to prevent a click fraud!

    For example you can add a role:

    if visitor have just clicked the advert (and the admin can choose the number of clicks during a time period)

    Here you can find javascript to monitor the click on advert:

    http://www.eggheadcafe.com/articles/adsense.asp

  20. 80
    WordPress Wednesday News: WordPress Plug... United States »
    pingback on 30/Aug/07 at 2:27 am # :

    [...] Who Sees Ads WordPress Plugin [...]

Pages: « 1 2 3 [4] 5 6 7 8 9 10 1116 » Show All

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.