public
Description: A Ruby wrapper for the Google Analytics API
Home | Edit | New

Accounts

Once you have logged in (see Logging In) you can now fetch all the accounts and their profiles.

Garb::Account.all

Get the first account:

account = Garb::Account.all.first

See its id and name:

account.id
account.name

Then get its profiles:

profile = account.profiles.first
Last edited by tpitale, Fri Jun 19 07:58:52 -0700 2009
Home | Edit | New
Versions: