Google ad Sense code implementation with Ruby on Rails

i want to integrate google ad in my existing webpages in ror .please
help me .
i found topic on my question in http://atservice.blogspot.com/2008/07/g
… ation.html

but when i tried this AdsController.rb file isnot there... so please
help me...

I dont think that google adsense is a public service or they provide a web service for that. Why should they
give a public service for a private data? I wonder.

But there should be a way to get the google analytics.