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

Jon Simon (not verified)

Drupal/Adsense Account insertion

Wed, 2006/12/27 - 14:17

I have (I think) followed the instructions line-by-line to activate Adsense on my Drupal site using your module.

I have created a # single-line textfield profile.

Where do I insert my Adsense user info?

I have tried category, title and explanation and still get the same error: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.

My adsense user id is:ca-pub-4207631460xxxxx.

  • reply

Adam Knight (not verified)

Same problem here.

Wed, 2007/01/03 - 20:40

Same problem here. Something's funky.

  • reply

Anonymous (not verified)

I have the same

Wed, 2007/03/07 - 18:57

I have the same problem...please help. I've followed the instructions exactly.

  • reply

Anonymous (not verified)

Found the symptom

Wed, 2007/04/18 - 11:42

Using Firefox's Firebug, I can see that the JavaScript to inject (pull) the ads from Google and place them in the box is missing. Hope this helps.

  • reply

stderr (not verified)

Have you tried to refresh

Wed, 2007/01/10 - 21:52

Have you tried to refresh (reload) that particular page.

  • reply

Jon Simon (not verified)

Have you tried to refresh

Sun, 2007/01/14 - 14:07

I refreshed many times

  • reply

Anonymous (not verified)

Try dropping "ca-" from your

Thu, 2007/01/25 - 21:10

Try dropping "ca-" from your key when you enter it in the adsense profile field. If you do a test code generation at the adsense site, you'll see that only "pub-343443xxx" shows up in the code google generates.

  • reply

Starkos (not verified)

Help (and more problems)

Sat, 2007/02/10 - 14:21

You have to create the Google AdSense Client ID field first, and then you fill it in. Enter category as "AdSense", title as "AdSense ID", make it private like the instructions state, and save the field. Then go to your profile and fill it in.

Now for my problem - I did all of that, and all I get is a box that says "Google AdSense" at the top. The ads never show! If I create a custom block and paste in the Google-supplied code I do see ads so I know my website and AdSense account are otherwise okay. The AdSense module is enabled and all the settings look good. Any ideas?

  • reply

Khalid

Clarifications

Sat, 2007/02/10 - 15:21

What does "all I get is a box that says Google Adsense"? Do you mean in /admin/settings/adsense, or on regular pages?

Also, did you try to logout and see if the ads are displaying?
--
Khalid Baheyeldin

  • reply

Michael (not verified)

How to configure it.

Wed, 2007/06/06 - 05:04

Hey guys.. I just made a tutorial on how to configure the adsense module in drupal. I'd like to answer this guy's question.

"Now for my problem - I did all of that, and all I get is a box that says "Google AdSense" at the top. The ads never show! If I create a custom block and paste in the Google-supplied code I do see ads so I know my website and AdSense account are otherwise okay. The AdSense module is enabled and all the settings look good. Any ideas?"

You are disable from seeing your adsense ads yourself so you don't accidentally click them. The creator of the module did this.

Ok check out the tutorial here to set up your adsense. Then you can use the adsense injector. http://www.hoy-pare.com/node/71

  • reply

Pages

  • 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.