Welcome to WebmasterWorld Guest from 34.204.168.57

Forum Moderators: martinibuster

Message Too Old, No Replies

AdSense with Drupal

OpenX, AdSense module or hand-coded

     
4:40 pm on Dec 1, 2009 (gmt 0)

Full Member

10+ Year Member

joined:Dec 22, 2004
posts:211
votes: 0


Taking it as a given that the site is built with Drupal, there are a few easy ways to run Adsense on a site. Assuming Adsense is my only advertiser for the foreseeable future, what's the best choice for ad insertion?

There are Drupal modules for OpenX, AdSense only, generic Ad insertion or just plain blocks. Right now I'm setting up the Adsense module because I've used it before. I've also tried OpenX on another site but it added significant complexity.

I'd like to be able to do A/B tests without too much effort. I'd like to get as much reporting information independent of Google as I can. I'm also interested in being able to control whether ads show for certain roles and other criteria (like age of the content shown).

If you have experience with just OpenX and Adsense I'm interested in hearing about that too.

4:54 pm on Dec 1, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 13, 2002
posts:408
votes: 0


Just create a block, show it for specific roles and not for others. Place the relevant code in the block. You can use PHP code to determine where or not to show the block for certain nodes. You can log into to OpenX and get the stats as usual. I assume you're hosting OpenX on your own server. You could also consider using Google Ad Manager instead of OpenX and make Google AdSense the default option.

It would be better to ask at the Drupal official forum at Drupal.org.

5:05 pm on Dec 1, 2009 (gmt 0)

Full Member

10+ Year Member

joined:Dec 22, 2004
posts:211
votes: 0


The one I did with OpenX is on my server, they're different domains though. I never got involved with OpenX to really understand it well though, so I was hoping some people might have reasons it's better or worse for my situation.

I could ask on the Drupal forums too, might still. I was thinking more about people with Adsense experience than Drupal experience.

7:06 pm on Dec 1, 2009 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 27, 2003
posts:1600
votes: 0


I use OpenX with Adsense for ad blocks that are consistent throughout the site (e.g. left column medium rectangle). But it will get tricky for posts/articles when you use different channels, especially if the channel is based on topics like I do.