How to integrate Google adsense?

I was surprised to see not much on the web about integrating Google
AdSense into Rails apps. I found this post:

http://atservice.blogspot.com/2008/07/google-ad-sense-code-implementation.html

but the meat of that post is a link to a file that doesn't exist any
more. Can anyone direct me to something useful that's already
published?