Erro de autorização

Jul 9, 2010 at 2:54 AM

Utilizando a API esta dando o seguinte erro:

O servidor remoto retornou um erro: (401) Não Autorizado.

Linha 71:                 throw new InvalidCredentialException(ExceptionText.NullToken);
Linha 72: 
Linha 73:             return Service.Query(dataQuery) as DataFeed;
Linha 74:         }
Linha 75:     }


 

Sep 12, 2010 at 12:59 PM

Hi jivandf,

You should change the details in the web.config to include your Google username & password and the correct AccountID.

Account id can be found in analytics as an "id" querystring -> ie https://www.google.com/analytics/reporting/dashboard?id=16218771&pdr=20100812-20100911&cmp=average&esig=0#lts=1284292689493

The format of the AccountID should be then: ga:16218771

Let me know if that solves your issue.

Thanks,
Mira