Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Analycis code updated...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frank Mantek  
View profile  
 More options May 26, 9:46 am
From: Frank Mantek <fman...@gmail.com>
Date: Tue, 26 May 2009 15:46:06 +0200
Local: Tues, May 26 2009 9:46 am
Subject: Analycis code updated...
I just updated the analytics code for the .NET library, and i think it  
is functional complete now (pending further feedback).

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options May 29, 8:53 am
From: Frank Mantek <fman...@gmail.com>
Date: Fri, 29 May 2009 05:53:44 -0700 (PDT)
Local: Fri, May 29 2009 8:53 am
Subject: Re: Analycis code updated...
This code just got some bugfixes in the repository. Please give it
another go.

Frank Mantek
Google

On May 26, 3:46 pm, Frank Mantek <fman...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Theis Boddum  
View profile  
 More options Jun 22, 3:54 am
From: Theis Boddum <t...@cgads.com>
Date: Mon, 22 Jun 2009 00:54:50 -0700 (PDT)
Local: Mon, Jun 22 2009 3:54 am
Subject: Re: Analycis code updated...
hi,

When will the analytics library be available in the Google Data API
for .NET

Best regards
TB

On 29 Maj, 14:53, Frank Mantek <fman...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options Jun 22, 8:22 am
From: Frank Mantek <fman...@gmail.com>
Date: Mon, 22 Jun 2009 14:22:07 +0200
Local: Mon, Jun 22 2009 8:22 am
Subject: Re: [gdata-dotnet-lib] Re: Analycis code updated...
It is - assuming you want to sync to the repository and just use the  
DLLs there. If you are waiting for an official setup, this will be a  
while as i want to add contacts v3 and probably the maps api to that  
as well.

Creating a setup has a large overhead - it indicates testing, several  
platforms, documentation etc.... I rather do this only after a  
sufficient amount of changes have happened in the codebase.

Frank Mantek
Google

On Jun 22, 2009, at 9:54 AM, Theis Boddum wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
normrider  
View profile  
 More options Jul 2, 12:51 pm
From: normrider <craigand...@gmail.com>
Date: Thu, 2 Jul 2009 09:51:13 -0700 (PDT)
Local: Thurs, Jul 2 2009 12:51 pm
Subject: Re: Analycis code updated...
One quick note for the data query to work I believe you would need to
make the id = a.TableId instead of a.AccountID since the data query
needs a profile ID.

That said I'm not able to get data queries to work in analytics.  I
always get a 400 bad request message.

I'm able to pull my analytics account information.  I can never get
the data queries to work.

I'm basically using a similar example to your example above, but I'm
just replacing the AccountID with the TableID since it has the profile
ID in the correct format ga:0000000.

From what I can tell the query that is being sent is

https://www.google.com/analytics/feeds/data?ids=ga:000000000&start-da...

I believe there is some issue with the encoding of the colon, but I'm
not sure.  Note I've changed my profile ID since this is a public
forum

Craig Norman

On Jun 22, 6:22 am, Frank Mantek <fman...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
normrider  
View profile  
 More options Jul 2, 1:33 pm
From: normrider <craigand...@gmail.com>
Date: Thu, 2 Jul 2009 10:33:43 -0700 (PDT)
Local: Thurs, Jul 2 2009 1:33 pm
Subject: Re: Analycis code updated...
I found that the dimensions and metrics I were using were incorrect so
that is why I got the 400 Bad Request errors.

On Jul 2, 10:51 am, normrider <craigand...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options Jul 3, 3:19 am
From: Frank Mantek <fman...@gmail.com>
Date: Fri, 3 Jul 2009 09:19:54 +0200
Local: Fri, Jul 3 2009 3:19 am
Subject: Re: [gdata-dotnet-lib] Re: Analycis code updated...
Just to clarify, everything works for you now?

Frank
On Jul 2, 2009, at 7:33 PM, normrider wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
normrider  
View profile  
 More options Jul 3, 11:00 am
From: normrider <craigand...@gmail.com>
Date: Fri, 3 Jul 2009 08:00:42 -0700 (PDT)
Local: Fri, Jul 3 2009 11:00 am
Subject: Re: Analycis code updated...
It does work for me now.  The default query with a profile ID, a start
date and an end date did not pull any data for me.

However I'm not able to use the API for .Net.  The reason why is
because I'm trying to use oAuth with a Token and a Token Secret.  I
know that oAuth is included in the libraries but I don't believe I can
use a Token with it.  I believe it only supports a consumer and
consumer secret.

Do you know of other examples where people have integrated "three
legged" oAuth into the Google API with .Net?

Basically I would like to use this .Net analytics API to generate the
query or the initial URL.  Pass that URL into my oAuth
implementation.  Then use the .Net analytics API to parse the
response.  The response I receive from Google Analytics is in a
string.  I would like to convert that into a Google Analytics Dataset
object.

Do you know of an example that implements something like this?

On Jul 3, 1:19 am, Frank Mantek <fman...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Duncan  
View profile  
 More options Jul 15, 4:36 am
From: Duncan <gunn.dun...@googlemail.com>
Date: Wed, 15 Jul 2009 01:36:31 -0700 (PDT)
Local: Wed, Jul 15 2009 4:36 am
Subject: Re: Analycis code updated...
I would also be looking for either oAuth or AuthSub authentication
methods, mainly because users of our software would rather submit
credentials straight to Google and not our third-party application.

Thanks
Duncan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options Jul 15, 12:11 pm
From: Frank Mantek <fman...@gmail.com>
Date: Wed, 15 Jul 2009 18:11:04 +0200
Local: Wed, Jul 15 2009 12:11 pm
Subject: Re: [gdata-dotnet-lib] Re: Analycis code updated...
Authsub and client token oAuth are both supported.

Frank Mantek
Google
On Jul 15, 2009, at 10:36 AM, Duncan wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
c.rooster@gmail.com  
View profile  
 More options Jul 16, 6:01 am
From: "c.roos...@gmail.com" <c.roos...@gmail.com>
Date: Thu, 16 Jul 2009 03:01:01 -0700 (PDT)
Local: Thurs, Jul 16 2009 6:01 am
Subject: Re: Analycis code updated...
This is a great API.
I'm working on the analytics code and i found a bug (I think)

The default accounttype does not work:
AccountTypeDefault = "HOSTED_OR_GOOGLE"

If I change the accounttype like this then it works:
GDataGAuthRequestFactory factory = (GDataGAuthRequestFactory)
service.RequestFactory;
factory.AccountType = "GOOGLE_OR_HOSTED";

regards, Corné

On 15 jul, 18:11, Frank Mantek <fman...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options Jul 20, 4:04 am
From: Frank Mantek <fman...@gmail.com>
Date: Mon, 20 Jul 2009 10:04:07 +0200
Local: Mon, Jul 20 2009 4:04 am
Subject: Re: [gdata-dotnet-lib] Re: Analycis code updated...
This is actually a bug in the google authentication services, which  
depends on your account credentials. The default HOSTED_OR_GOOGLE  
seems to fail for some accounts, those account would work if you ask  
for a "GOOGLE" account. Your string seems to be treated by the  
authentication service as just "GOOGLE", and hence it works.

Feel free to file a bug against the service here:

http://code.google.com/p/gdata-issues/

Frank Mantek
Google
On Jul 16, 2009, at 12:01 PM, c.roos...@gmail.com wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google