Skip to main content
Home
The Baheyeldin Dynasty
The journey for wisdom starts with knowledge
  • Home
  • About
  • Site Map
  • Contact

Drupal Module: Google AdSense

  1. Home
  2. Resources for using Google Adsense with Drupal

By Khalid on 2005/05/26 - 00:26, last updated 2005/05/26 - 00:35

A while back I wrote about Search Engine Optimization, which touched a bit on AdSense. I also wrote a tutorial on how to use Google's AdSense with Drupal.  Well, the time has come to make this a module, and here it is : the Google AdSense Drupal module. It is not as feature complete as I want it to be, but will do the job for most sites. Wish list includes:

  • Have different colors for different ads. This will allow you to style the left sidebar different from the right sidebar
  • Allow certain roles/users not to see ads (e.g. paying subscribers)

Go ahead and install it and make some money!

Contents: 
Drupal

Book Navigation

  • ‹ Resources for using Google Adsense with Drupal
  • up
  • Drupal: Using flexiblock to show/hide AdSense ›
  • Add comment

Comments

Sunish (not verified)

Adsense for Drupal doesn't seem to work on FF and Opera

Fri, 2007/06/15 - 03:57

I seem to have a problem with FF & Opera.No problem with IE though. Is there any fix ?

  • reply

nigel (not verified)

problem with no show adsense using this module

Fri, 2007/08/17 - 09:53

I have installed the adsense module according to the instructions, put my adsense client id in and configured it as a block in the sidebar. No adverts show even in anonymous login.

Since it is easy to put the adsense Javascript code in a homemade block which works reliably I am beginning to wonder about the usfulness of this module.

  • reply

Anonymous (not verified)

I tried everything and still

Tue, 2007/09/25 - 07:08

I tried everything and still I get nothing.

When will the "EASY" Version of this module be released?

  • reply

Anonymous (not verified)

I have installed it but I

Tue, 2007/11/06 - 11:14

I have installed it but I don't see it on my module directory when I login to my site.

  • reply

W. Brown (not verified)

Pretty easy setup

Fri, 2007/12/28 - 02:09

I followed the instructions down to the last letter. Setup was easy. Also, I have tested this with the following browsers: Internet Explorer, FireFox, Opera, and Apple Safari. Works great! I'm a total newb at web design and Drupal. So far, my experience has been great!

Thanks for the awesome module
W. Brown

  • reply

Itangalo (not verified)

Turn off Adblock

Fri, 2008/02/22 - 20:19

It took me some three hours to find the silly reason to why AdSense didn't work on my site: I had Firefox Adblock extension active.

Hopefully this tip helps other people in my situation. :-)

Thanks for a neat module!
//Johan in Sweden

  • reply

Gerhard Baumann (not verified)

I have Firefox Adblock

Sat, 2008/04/26 - 17:15

I have Firefox Adblock extension active too, but the Google-Ads on this site are visible! That's GREAT! Can I have this for my Drupal-Site?

Ads can be horrible annoying and time/traffic-consuming. These decent Google-Ads may even be eye-candy and add value for both site-owner and visitor.

I'd like to show Google-Ads to visitors with AdBlock on, and let them the option to turn the ads off.

And Yes, Mr. Baheyeldin, I will set up my AdSense-account via your referral-link.

Thank you for your great work.

Gerhard

  • reply

Gerhard Baumann (not verified)

Oops, sorry. The Google-Ads

Sat, 2008/04/26 - 17:33

Oops, sorry. The Google-Ads disappeared. Must have been a problem with my AdBlocker.

New question: Would it be possible to 'mask' AdSense-Ads in Drupal? In a way thas visitors can add them to their AdBlocker, if they want to?

Gerhard

  • reply

Khalid

Roles

Sat, 2008/04/26 - 18:14

It can be done on many levels.

I don't use adblock, so don't know how it works, but probably it blocks javascript in specified domains.

You can simply assign the "hide adsense" permission to the roles you want on your Drupal site, so logged in users would not see any ads, but anonymous visitors would see the ads. You can refine that by doing it to more roles as well.
--
Khalid Baheyeldin

  • reply

Gerhard (not verified)

Thank you

Tue, 2008/04/29 - 11:50

Thank you for the answer.

Yes, AdBlocker blocks JS by domain and catchwords. And they do that very well. This is a problem now and could become a disaster in the future for freelancers and small companies, who depend on ad-agencies with their informational site (like me soon, I'm still working on my first project).

More and more people use AdBlockers. The reason why is obvious: On many sites it's hard to spot the content amidst the advertising - and a dozen flashing Flash-Ads may cause eye-cancer ;-). Often it's a relieve from pain.

Unfortunately AdBlocker block any ads from decent text-ads to flashy skyscrapers.

If someone *hint* could create a module that masks adverts in order to let them pass the ad-filter, he would be the drupal-hero of the year for two years (maybe even three).

The idea is to combine such a module with non-disturbing advertising, so the visitor does not feel the need to add the ads to the ad-filter (which can be easily be done via rightclick - at least with my Firefox-AdBlockPlus).

Regards from Gerhard

http://adblockplus.org/en/

  • reply

Pages

  • « first
  • ‹ previous
  • 1
  • 2
  • 3
  • next ›
  • last »

Current

Pandemic

  • COVID-19
  • Coronavirus

Search

Site map

Contents

  • Family
    • Khalid
    • Ancestry
    • Extended
  • Friends
  • Nokat نكت
  • Writings
    • Cooking
    • Culture
    • Science
    • History
    • Linguistics
    • Media
    • Literature
    • Politics
    • Humor
    • Terrorism
    • Business
    • Philosophy
    • Religion
    • Children
  • Technology
    • Linux
    • Arabization
    • Drupal
      • Association
    • Software
    • Internet
    • Technology in Society
    • Digital Archeology
    • NCR History
    • MidEast Internet
    • Programming
    • Saudi ISPs
    • Miscellaneous
  • Places
    • Canada
      • Weather
    • Egypt
      • Cuisine
      • Alexandria
      • E.G.C.
    • USA
    • Saudi Arabia
  • Interests
    • Astronomy
    • Fishing
    • Photography
    • Snorkeling
    • Nature
    • Photomicroscopy
  • Miscellany

In Depth

  • al-Hakim bi Amr Allah: Fatimid Caliph of Egypt الحاكم بأمر الله
  • Alexandria, Egypt
  • Arabic on the Internet
  • Articles on the history of Muslims and Arabs in the Iberian Peninsula تاريخ المسلمين و العرب في الأند
  • DIY GOTO Telescope Controller With Autoguiding and Periodic Error Correction
  • E.G.C. English Girls College in Alexandria, Egypt
  • Egyptian Cuisine, Food and Recipes مأكولات مصرية
  • George Saliba: Seeking the Origins of Modern Science?
  • Internet Scams and Fraud
  • Mistaken for an Arab or Muslim: Absurdities of being a victim in the War on Terror
  • Mistaken Identity: How some people confuse my site for others
  • One People's Terrorist Is Another People's Freedom Fighter
  • Overview of Google's Technologies
  • Photomicroscopy
  • Pseudoscience: Lots of it around ...
  • Resources for using Google Adsense with Drupal
    • Drupal Module: Google AdSense
    • Drupal: Using flexiblock to show/hide AdSense
    • Links and Resources on Google Adsense
    • Using Drupal 4.7 regions to show/hide AdSense
    • Using Google AdSense with Drupal
    • Drupal AdSense Module: Added Section Targeting
    • How To Include Drupal Comments In Section Targeting
  • Rockwood Conservation Area, Southern Ontario
  • Selected Symbolic Novels And Movies
  • Snorkeling the Red Sea near Jeddah
  • Updates and Thoughts on the Egyptian Revolution of 2011

Recent Content

Most recent articles on the site.

  • Origin Of COVID-19: Natural Spillover, Lab Leak Or Biological Weapon?
  • Kamal Salibi and the "Israel from Yemen" theory
  • How To Upgrade HomeAssistant Core In A Python Venv Using uv
  • Ancestry - Paternal Side
  • Review of Wait Water Saver For Whole House Humidifiers
more

Most Comments

Most commented on articles ...

  • Another scam via Craigslist: offering more than asking price
  • Warning to female tourists thinking of marrying Egyptians
  • Craigslist classified for used car: Cheque fraud scam
  • Winning the lottery scam email: World Cup South African lottery
  • Email Scam: BMW 5 Series car and lottery winning
more

About Khalid

Various little bits of information ...

  • Khalid Baheyeldin: brief biography
  • Presentations and Talks
  • Youtube Videos
  • GitHub Projects
  • Drupal.org Profile
  • Astrophotography @ Flickr

Sponsored Links

Your Link Ad Here

Tags

Android Mobile Ubuntu Sony OnStep OpenWRT Router Ericsson COVID-19 Rogers Coronavirus Arabic Kubuntu Home Assistant GSM Telescope tablet Spectrum Scam Python 419 Laptop Firefox DIY CPU Conspiracy Comet Balkanization backup App
More

© Copyright 1999-2025 The Baheyeldin Dynasty. All rights reserved.
You can use our content under the Terms of Use.
Please read our privacy policy before you post any information on this site.
All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of The Baheyeldin Dynasty.

Web site developed by 2bits.com Inc.