Google Adsense module gets new features

We are pleased to announce that we have committed a new version of the Drupal Adsense module to the contributed modules repository at Drupal.org.

The release has some new features, including:

  • Added five pre-defined blocks that are easily configurable by the site admin without the need to use any PHP code. This is a major usability improvement for many site owners.
  • Added a new "test mode" that ensures Adsense is working correctly specially when setting up revenue sharing.
  • The Adsense client ID is now stored in a profile field, both for site owner as well as other users.
  • Added a block tag, instead of flexiblock, since that module is not needed much in 4.7 with the new block regions feature.
  • Increased number of ad groups (type, color, ..e.tc.) from 3 to 5.
  • Increased the number of channels from 3 to 7.
  • Updated the online help and instructions, and made it collapsible/collapsed by default, so it is not in the way.
  • Separated the online help in its own file to save memory and overhead.
  • Added version information and date in the setting page, so users know what they are running.

We plan to start a community on Adsense and other modules we authored here at 2bits.com soon.

Contents: 

Comments

A word of thanks!

I wish to say "Thank you!" to the developer of the Adsense module for Drupal! I have installed adsense on two moderately busy community sites and this module has substantialy reduced the complexities involved in implementing Adsense on my site(s).

Thank you!

Adlogger

How about a feature to include adlogger in the adsense codes for the next update?

http://www.adlogger.org

It's an open source adsense tracker

Logging already there

We already have a feature in 4.7 that logs all clicks, from which page, and we provide some reports (most clicked pages, clicks per day, detailed clicks).

We looked briefly at adlogger in the past, and will consider it for the future.

please submit a feature request on drupal.org for this.
--
2bits.com

YPN Support

Have you considered adding YPN support? I wouldn't think it would be too much work to add the support since the framework is already in place. Let me know if you have plans, otherwise can make my hack for your module a little less of a hack and more of an upgrade.

Thanks,
Todd

Yes

Yes, it was considered.

The main problem is that it is not available outside the USA, unlike Google's adsense.

See this issue.
--
2bits -- Drupal consulting

Good work

Very good work: I use this module in my site and it works very well.

There aren't Ad Links of 5 links, but I think they are unuseful because the font became too small.

Thank you.

What is wrong?

I have followed the instructions, created a profile entry called 'Google Adsense ID', available to Admins and modules, and I've set my value; and yet I get the following error message:

* There is no site owner Google Adsense Client ID defined. Please define a profile field, and select it below as per instructions, and enter a value for user id 1 as explained below.
* There is no site owner Google Adsense Client ID defined. Please define a profile field, and select it below as per instructions, and enter a value for user id 1 as explained below.

The configuration options have been saved.

What's up with that?

Thanks,

Jake

Select and save

After you do that, you have to select the field in admin/settings/adsense, and then click Save.

Only after you do that would the message go away and everything else works fine.
--
2bits -- Drupal consulting

Field privacy settings

The problem is with the field's privacy setting which are too high. See a solution here: http://drupal.org/node/88284

adsense Revenue Sharing w permissions

Great module. It makes adsense much easier to use. I also found the revenue sharing to be a great element but I was wondering if there was anyway to control the revenue sharing through access control (permissions).

Say I decide that regular users get 20% of the click, but moderators who submit content get 50%.

Thanks for your time,
Chris

Can be done

Yes, this can be done, but until someone is willing to fund it, it will have to wait at the bottom of a list of a million other things.
--
2bits -- Drupal consulting

Good new algorithm

Good new algorithm, it raised my ctr and made it much higher. bt.w. colourful adsense is pretty good.

Is it compliant with Adsense ToS?

Hello,

This module is excellent. Your work is much appreciated. I have one question though before I implement it on my production web site:

In the AdSense code that this module generates, although the variable values are the same as in the code that could be generated at the adsense website, their order is different. Google could assume that the code has been edited manually, which I think is against the Adsense terms of use.

What is your opinion about this? Why the order of the variables is different than google's? I guess that you can understand the importance of this as it could result in Google banning somebody out of the program.

Thanks in advance,
Robert

Don't think it is an issue

I have been running it on several sites since I wrote the module and never had a late payment or any negative comment from Google.

Others have been running it too with no issues.

All Google cares about is that the appropriate variables are set when you get a click. The order is irrelevant.
--
2bits -- Drupal consulting

Does this module developers

Does this module developers include code revenue sharing on profile page in drupal?