Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have been using a simple auth connect to retrieve analytics data from various profiles within my account using the main username and password as credentials. This has worked well until now and locally (on my MAMP server) the method still works. Even those accounts not using my main access details (as they are on another analytics account) these work fine live and locally. However, within the last 24hours my main account details on the live server seem to have stopped being able to retrieve data.

It authenticates fine but when I try and retrieve profile information I get the response:

<errors xmlns="http://schemas.google.com/g/2005">
  <error>
    <domain>GData</domain>
    <code>insufficientPermissions</code>
    <internalreason>User does not have sufficient permissions for this profile.</internalreason>
  </error>
</errors>

Confusing as it works fine on my local, I have checked the API is enabled in the developers console.

share|improve this question
1  
I wouldn't bother fixing it I would switch to using a Service account. Using your login and password is going to stop working very soon. –  DaImTo Jun 17 '14 at 11:03
    
Which version of API are you using? I would also recommend service account and authentication via key file –  Kamran Shahid Jun 17 '14 at 11:10
    
Thanks, I have been using: google.com/analytics/feeds/data?ids= Now using: googleapis.com/analytics/v2.4/data?ids= Do you know of any PHP examples using the technique above? –  Eth Jun 17 '14 at 11:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.