You can get this here:
http://code.google.com/p/google-gdata/source/browse/
If you sync to the depot, you get new dlls etc. The following code
snippets should illustrate what you can do:
RequestSetting settings = new RequestSettings("youapp", "user", "pwd");
settings.AutoPaging = true;
AnalyticsRequest r = new AnalyticsRequest(settings);
Feed<Account> accounts = r.GetAccounts();
string id = "";
foreach (Account a in accounts.Entries)
{
Console.WriteLine(a.AccountName);
Console.WriteLine(a.AccountId);
// remember one id
id = a.AccountId;
}
DateTime endDate = DateTime.Now;
DateTime startDate = endDate.AddDays(-2);
DataQuery q = new DataQuery(id, startDate, endDate);
Dataset set = r.GetData(q);
Console.WriteLine(set.Aggregates.Metrics[0].IntegerValue);
Console.WriteLine(set.Aggregates.Metrics[0].ConfidenceInterval);
Console.WriteLine(set.DataSource.TableName);
foreach (Data d in set.Entries)
{
Console.WriteLine(d.Title);
Console.WriteLine(d.Metrics[0].Value);
}
Note, the above code is written in that email, so i am not
guaranteeing a cut/copy/paste working sample here...
I would love some feedback, especially for those with working
analytics accounts/projects to give this a spin.
Frank Mantek
Google