> 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;
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.
>>> 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;
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
> 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:
> > 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:
> >> 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:
> >>> I just updated the analytics code for the .NET library, and i
> >>> think it
> >>> is functional complete now (pending further feedback).
> 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
> 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:
> > 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:
> > > 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:
> > >> 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:
> > >>> I just updated the analytics code for the .NET library, and i
> > >>> think it
> > >>> is functional complete now (pending further feedback).
> 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:
>> 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
>> 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:
>>> 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:
>>>> 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:
>>>>> 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:
>>>>>> I just updated the analytics code for the .NET library, and i
>>>>>> think it
>>>>>> is functional complete now (pending further feedback).
>>>>>> 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;
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:
> Frank
> On Jul 2, 2009, at 7:33 PM, normrider wrote:
> > 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:
> >> 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
> >> 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:
> >>> 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:
> >>>> 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:
> >>>>> 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:
> >>>>>> I just updated the analytics code for the .NET library, and i
> >>>>>> think it
> >>>>>> is functional complete now (pending further feedback).
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.
> 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.
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:
> Authsub and client token oAuth are both supported.
> Frank Mantek
> Google
> On Jul 15, 2009, at 10:36 AM, Duncan wrote:
> > 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- Tekst uit oorspronkelijk bericht niet weergeven -
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.
> 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:
>> Authsub and client token oAuth are both supported.
>> Frank Mantek
>> Google
>> On Jul 15, 2009, at 10:36 AM, Duncan wrote:
>>> 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- Tekst uit oorspronkelijk bericht niet weergeven -