The sample code for the Google Client API pages has been updated. It now uses the names of the new Google Client PHP API release and also switched from object – reference to arrays.
Finally the source code is available at github: https://github.com/tobiaskluge/enarionGoogPhp. Feel free to download, fork and send pull requests. This repository includes working examples for Google Analytics and Google Adsense access.