in context of batch, Quota Error: User Rate Limit Exceeded.

226 views
Skip to first unread message

Chris Harrington

unread,
Sep 22, 2015, 2:36:50 PM9/22/15
to Google Analytics Management API
Hi,
When using the batch API, I figured that the quota error would be at the batch http request level. But I am instead getting a quota error for a request within a batch. This means that the exponential backoff logic at the http client request level isn't going to take care of things.

I am curious how folks are handling this. I'm doing a user permissions batch, and so assumed (from docs):

"With the exception of batched User Permissions requests, all rate limits still apply. For example, the Core Reporting API is limited to 10 concurrent requests per view (profile); batching will not help you stay below this limit. "

Matthew Cohoon

unread,
Sep 22, 2015, 2:49:54 PM9/22/15
to Google Analytics Management API
Can you describe a little bit about how you are structuring your calls?

What level of requests are you putting in a single batch request: account property or profile user links?
How many users are you trying to update for a single batch request?
What verbs are you calling within a single batch request, list, insert, update, patch, delete?
How many requests are you putting in a single batch request?
How many batch requests are you making and how frequently are you sending them?

-Matt

--
You received this message because you are subscribed to the Google Groups "Google Analytics Management API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-mana...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Harrington

unread,
Sep 22, 2015, 2:58:49 PM9/22/15
to Google Analytics Management API


On Tuesday, September 22, 2015 at 2:49:54 PM UTC-4, Matt wrote:
Can you describe a little bit about how you are structuring your calls?

What level of requests are you putting in a single batch request: account property or profile user links?
all 3 levels
How many users are you trying to update for a single batch request?
What verbs are you calling within a single batch request, list, insert, update, patch, delete?
list
How many requests are you putting in a single batch request?
9
How many batch requests are you making and how frequently are you sending them?
1 batch request - fails on first one

-Matt

On Tue, Sep 22, 2015 at 11:36 AM, Chris Harrington <back...@gmail.com> wrote:
Hi,
When using the batch API, I figured that the quota error would be at the batch http request level. But I am instead getting a quota error for a request within a batch. This means that the exponential backoff logic at the http client request level isn't going to take care of things.

I am curious how folks are handling this. I'm doing a user permissions batch, and so assumed (from docs):

"With the exception of batched User Permissions requests, all rate limits still apply. For example, the Core Reporting API is limited to 10 concurrent requests per view (profile); batching will not help you stay below this limit. "

--
You received this message because you are subscribed to the Google Groups "Google Analytics Management API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-management-api+unsubscribe@googlegroups.com.

Chris Harrington

unread,
Sep 22, 2015, 3:00:33 PM9/22/15
to Google Analytics Management API
Correction. It fails on the 2nd one. So the first batch of 9 succeeds.


On Tuesday, September 22, 2015 at 2:49:54 PM UTC-4, Matt wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-management-api+unsubscribe@googlegroups.com.

Matthew Cohoon

unread,
Sep 22, 2015, 7:14:14 PM9/22/15
to Google Analytics Management API
The list operation unfortunately is not eligible for the quota batch optimization. The user rate limit for your project will still apply, usually 10 QPS for list operations. You will can still get some HTTP overhead gains for batching the list requests but the true savings is in the write operations. You can batch up 300 write requests in a single requests, which will count as only 10 write requests against your projects write limits.

The documentation has been updated to hopefully clarifies this issue.

"With the exception of batched User Permissions write (delete, insert, update) requests, all rate limits still apply".

To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-mana...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Analytics Management API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-mana...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages