Adsense reader

Hello all,

I've been trying to make an adsense reader for my rails app, and I'm
running into a lot of trouble.

Here's what I want:

On my admin page I'd like to be able to display the $ in my adsense
account. (Like the amount that each person has made, not how much
we've spent). I looked into adwords4r, but it only works for adwords,
I want it for adsense.

Any ideas? Has anyone done this before?