I guess I must be repeating what you know, but lots of info can be had at http://code.google.com/apis/adsense/
you mentioned a tutorial: as fscripting said, this can be found at the site - code.google.com/apis/adsense/developer/samples/php/common.php.txt It depends on which language you want to use to "connect" your site