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:

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?