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

Drupal AdSense Module: Added Section Targeting

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

By Khalid on 2005/12/03 - 11:20, last updated 2022/11/19 - 09:38

The latest version of Drupal's Google Adsense module implements the relatively new feature of section targeting.

This allows ads to be targeted more towards the content of nodes in Drupal, and not others areas of the page's HTML, such as blocks. This provides more relevant ads to the page being displayed.

This feature is ON by default, but can be turned off by the administrator.

Contents: 
Drupal

Book Navigation

  • ‹ Using Google AdSense with Drupal
  • up
  • How To Include Drupal Comments In Section Targeting ›
  • Add comment

Comments

Anonymous (not verified)

where should we put these tags?

Sun, 2005/12/04 - 13:57

This is interesting, but I'm curious where we should put these tags.

Generally, I want google to look at the node content and the comments on the node. Is there some easy way to do this?

Thanks!
Greg

  • reply

Khalid

They are automatic

Sun, 2005/12/04 - 17:03

Well, you do not need to put anything anywhere ...

The adsense module does that for you automatically by default.

It wraps the body and teaser in the necessary tags.

Comments are not taken into account.

The way I understand it is that Google will still look at comments (and title and blocks, ...etc.), but will give more weight to the node body.

There is no hook for comment viewing, so wrapping comments in those tags has to be done in the theme, by modifying the comment.tpl.php file.

I will write an article on how to do that soon.

  • reply

Greg (not verified)

Brilliant - thanks!

Sun, 2005/12/04 - 17:34

Brilliant - thanks!

  • reply

Khalid

Here is the article on how

Sun, 2005/12/04 - 17:56

Here is the article on how to implement that comments.

  • reply

Rudy (not verified)

inserting adsense in a blog post

Tue, 2006/09/19 - 12:29

Hi,
I have installed the latest module of adsense. I want to have a adsense block to be displayed in the middle of the content of all the blog posts by the members automatically. I have enabled "Adsense trageting". Can you please tell me what I am missing.
Thanks
Rudy

  • reply

Khalid

Not section targeting

Tue, 2006/09/19 - 19:14

Section targeting has nothing to do with where the ads are displayed. It just tells Google what the most important parts of the page to consider in keywords.

There is no way currently, without custom code, to automatically place ads in the body of a post.

  • reply

Anonymous (not verified)

Latest version?

Mon, 2005/12/05 - 10:42

Is the latest version of the module uploaded to Drupal.org? on the module download page it appears that the most recent version is still (4.6.0, 26/05/2005 - 09:58). Perhaps I am just missing it on the Drupal site?

Thanks for all your great work!

  • reply

Khalid

Ignore the date

Mon, 2005/12/05 - 13:18

There is a bug in the script that generates the packages on drupal.org, but the contents of the package should be fine.

Check that you have this at the top of the adsense.module file:

//$Id: adsense.module,v 1.25 2005/12/03 03:29:28 kbahey Exp $
  • reply

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.