开发者

Google Analytics Data Feed API Error 414 URI Too Large

开发者 https://www.devze.com 2023-04-07 21:19 出处:网络
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/ana

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

0

精彩评论

暂无评论...
验证码 换一张
取 消