Google Analytics Data Feed API Error 414 URI Too Large
When using the google analytics data API with the python gdata library, we are assembling a GET开发者_Python百科 request per the instructions in the documentation here: http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDataFeed.html
We are running into problems however. As our requests get longer, we're occasionally getting a 414 error URI Too Large when we have a lot of filters.
Is there any way to use a POST request with the gdata API or otherwise get around the 414?
EDIT: Just tried using a POST request and get 403 Target feed is read-only. Is there any way around this restriction?
There is a 128 character limit on filters regardless of whether you're using GET or POST. Anything longer than that will result in a 400 error. The only way around that length limit is to use AND/OR boolean logic.
Here's the full explanation from Google: Rules for Filter Expressions
精彩评论