Hi guys,
It seems like I was finally able to understand exactly a problem that is happening to the new v3 API when passing data in the body of a POST request (used by the iOS library).
Here's the problem: the API cannot understand UTF8 characters passed in filters, like the following request. The data always comes back as empty (no errors).
{
"method": "analytics.data.ga.get",
"id": "gtl_17",
"jsonrpc": "2.0",
"params": {
"end-date": "2012-04-22",
"ids": "ga:MYID",
"filters": "ga:Region==Baden-Württemberg",
"metrics": "ga:visits, ga:pageviews, ga:visitBounceRate, ga:pageviewsPerVisit",
"start-date": "2012-03-23",
"sort": "-ga:visits",
"dimensions": "ga:City"
},
"apiVersion": "v3"
}
If I remove the filter, or change it to "ga:Region==Germany" (no utf8 chars), it works correctly. But when I pass the ü it fails. It also fails for names that have commas in them, like the region of "Mariy El, Republic" in Russia. I tried to urlencode the filter to "ga:Region==Baden-W%C3%BCrttemberg", but it doesn't work either.
Any ideas? This is causing a lot of frustration for some of the users of my app Quicklytics..
Thanks!
Eduardo Scoz