Adlogger is not any longer supported or distributed. The new software is called asRep. It has a click fraud prevention.
-> http://www.asrep.com/

Anybody here who has integrated asRep in Drupal with Adsense?

Thank you.

Comments

funana’s picture

Self responding ;-)

I managed to integrate it.
Remember to use the correct path to fraudprev.php.

Use this, starts somewhere at line 651:

require_once "asrep/fraudprev.php" ;
# show only if the visitor have seen less than 10 ad displaying pages
# and clicked 2 times or less in the last 1 hour
if(asrep_ipStatsOK(10, 2, 1*60*60)){
  $output .= _adsense_add_nl('');
  $output .= _adsense_add_nl('<div class="adsense">');
  $output .= _adsense_add_nl('<script type="text/javascript"><!--');
  switch($alt) {
    case 0:
      // disabled
      break;
    case 1:
      $output .= _adsense_add_nl('google_alternate_ad_url = "' . $alt_info . '";');
      break;
    case 2:
      $output .= _adsense_add_nl('google_alternate_color = "' . $alt_info . '";');
      break;
  }
  $output .= _adsense_add_nl('google_ad_client = "'    . $client  . '";');
  $output .= _adsense_add_nl('google_ad_type = "'      . $type    . '";');
  $output .= _adsense_add_nl('google_ad_channel = "'   . $channel . '";');
  $output .= _adsense_add_nl('google_ad_width = '      . $width   . ';');
  $output .= _adsense_add_nl('google_ad_height = '     . $height  . ';');
  $output .= _adsense_add_nl('google_ad_format = "'    . $format  . '";');
  $output .= _adsense_add_nl('google_color_border = "' . $border  . '";');
  $output .= _adsense_add_nl('google_color_bg = "'     . $bg      . '";');
  $output .= _adsense_add_nl('google_color_link = "'   . $link    . '";');
  $output .= _adsense_add_nl('google_color_url = "'    . $url     . '";');
  $output .= _adsense_add_nl('google_color_text = "'   . $text    . '";');
  $output .= _adsense_add_nl('//--></script>');
  $output .= _adsense_add_nl('<script type="text/javascript"');
  $output .= _adsense_add_nl(' src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
  $output .= _adsense_add_nl('</script>');
  $output .= _adsense_add_nl('</div>');
}

You could add an "else" :

else{ 
<!-- If you want to display any alternate content, put it here -->
 } 
jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still working for you?

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Postponed

Anyway, forget it.. Drupal forbids hosting of modules that link to proprietary libraries.. The module can't integrate the code above.

So this is postponed ad eternum (nothing prevents users from doing it themselves, though).

A word of warning, the suggested implementation is very, very wrong. The asrep call should be placed in the _adsense_check_if_enabled() function.

João

kbahey’s picture

Actually, we can integrated the code to do asRep, but not host asRep itself in the adsense module repository. So the "glue" to asRep can be part of this module, but you still have to download asRep from its own site.

The important part is whether asRep does work after Google's Oct 2007 change to the ad code to prevent click monitoring. If it no longer works, there is nothing to integrate anymore.

jcnventura’s picture

kbahey and me discussed this and as asRep is commercial and we would better avoid dealing with licensing issues and hassles for a product that is not free to use, so the value from it will be very limited.

João

jcnventura’s picture

Status: Postponed » Closed (fixed)