How To Setup Drupal RSS Feed With FeedBurner and Adsense

Having a website is great.  Publishing useful content is great.  Unfortunately, some people don't want to go to your great website for that content: they prefer to aggregate it in their rss reader, like google reader, NewsGator, etc, or in their email -something also supported by feedburner.  "RSS Feeds", remember, are updates on the latest posts on your website.

So how do you set up drupal to provide an rss feed for users?  Luckily, it's easy.  Your drupal installation probably has the rss feed automatically configured, and your theme probably has set up the rss feed to be displayed with the feed icon somewhere on the page - making it easier for users and browsers to find the feed.  My feeds are all standard, and so the feed for this website, for instance, is at http://palma-seo.com/rss.xml - you can find the orange icon near the bottom of the page that has the address in it (click it or copy to test it).

Fantastic: your feeds are already working.  However, you'll never know from your access log when a person is reading your feed, versus a search engine crawler.  And your basic RSS feeds might be set up for teaser only, and definitely don't include any adsense or other advertisements by default.  If that's OK with you, then that's fine.

drupal rss setup windowHowever, if you want your RSS feed to contain the full text of your posts, try using the rss setup window, accessible from the system portion of the admin menu.  It's pretty self-explanatory.

Next, sign up for feedburner at http://feedburner.google.com and give the URL of your rss feed, ie http://example.com/rss.xml - you can configure a few options, but for now just leave it with the most basic setup.

Download the drupal feedburner module from http://drupal.org/project/feedburner into the sites/all/modules directory of your installation, and from the admin/build/modules screen, enable FeedBurner module.

burn feed tab in drupal admin screen for feedburner module

Then configure it through admin/build/feedburner.  In my case, I clicked the Burn Feed tab, then added the default rss.xml and also the url I had from feedburner (CentralAmericaForum). This was my setup right before I clicked Save.

Finally, you'll want to install adsense.  I assume you've already got an adsense account.  Go to your adsense account, add in a FeedBurner Feed from the Setup tab, for your feed.  This is easier now that Google and Feedburner are nearly integrated, but unfortunately there are still some bugs that are being worked through, as you can see if you review the official google/feedburner blogs at http://adsenseforfeeds.blogspot.com/2008/12/now-available-moving-your-feedburner.html and http://adsenseforfeeds.blogspot.com/2009/01/411-on-502.html

drupal feedburner module settings tab

Finally, you'll also have to update the drupal Feedburner module with your preferences for the feed adsense.  From the Feedburner admin screen with 3 tabs, click the settings tab, and update it the way that you want.  Here's mine.

 

I wrote this article using the 6.x-1.0-beta4 version of the drupal feedburner module. There was also a bug in feedburner's website (broken monetize tab) at the time I wrote the module, so things may change soon - but setting up (even without the monetize tab on feedburner's site) using the feedburner setup page and adsense setup page did work: the ads are displaying in google reader and do appear as impressions in adsense.  

So far I just set this up for central-america-forum.com but I'll set it up for this site soon also.

Good luck!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Added to DrupalSightings.com

Bug?

Dave, the FeedBurner module maintainer here. Glad to know things mostly worked for you! :) Is the bug you mentioned with FeedBurner's advertisement in the Drupal module or the Google/FeedBurner service? If it was with the module would you mind filing a bug report at http://drupal.org/project/issues/feedburner?

The bug isn't in the FeedBurner module, rather at FB site

Hi Dave, Sorry, i should have been more clear -  the bug isn't in your module.  The bug is at the FB site where (at least for my account) their "Monetize" tab is broken.  After setting up through my adsense account, the ads are appearing when viewed through google reader, and showing up in adsense as impressions, so it appears FB's bug is mostly cosmetic.  By the way, nice work on the module!! Worked like a charm.

That's what I thought, but I

That's what I thought, but I thought I'd double check. I'm glad everything that I could be responsible for worked great for you and that you find it useful! :)

Feedburner is interesting, but

Feedburner is interesting, but I never figured out how to make it use with the flexibility of Drupal. I mean every taxonomy entry has an own feed, that you would have to add to feedburner... not to mention i18n and other things...