Reputation: 2906
I'm using the Ruby gem Garb to pull some view counts from Google Analytics. I can authenticate with no problem using my username/password. When I attempt to pull data, however, I get the response:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<errors xmlns=\"http://schemas.google.com/g/2005\">
<error>
<domain>usageLimits</domain>
<code>userRateLimitExceededUnreg</code>
<internalReason>User Rate Limit Exceeded. Please sign up</internalReason><extendedHelp>https://code.google.com/apis/console</extendedHelp>
</error>
</errors>
I've already signed up at https://code.google.com/apis/console/. There it shows that I have 50K courtesy requests per day. Problem is, even when I don't make one request in 24 hours and then attempt to make one, I'm getting the error. Any idea how to proceed? Thanks.
Upvotes: 1
Views: 3639
Reputation: 558
I have the same issue in a different way :
Maybe Google Analytics server block the IP adress of my production server ? if this is the case, how to unblock it again ?
Upvotes: 0
Reputation: 1
The error may be the result of running queries within a loop. As you are restricted to 1 query per second by default. You may increase it to 10 qps but I don't think that solves your problem totally. You may add some intervals. Say using sleep(1).
Upvotes: 0