Reply to comment

How To Setup Drupal RSS Feed With FeedBurner and Adsense

Thu, 04/30/2009 - 07:39 - peter | |

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!

Reply

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for clevery testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.