This is the error
INFO: Error getting total number of results from Google Analytics
https://www.google.com/analytics/feeds/data?start-index=1&max-results=0&metrics=
ga%3Avisits%2Cga%3Agoal2Starts%2Cga%3Agoal2Completions&sort=ga%3Adate&dimensions
=ga%3Adate%2Cga%3Asource%2Cga%3Amedium%2Cga%3Akeyword&start-date=2011-04-14&end-
date=2011-10-13&ids=ga%3A8908985&filters=ga%3Amedium%3D%3Dorganic%2Cga%3Amedium%
3D%3Dpaid
com.google.gdata.util.InvalidEntryException: Bad Request
What steps will reproduce the problem?
1. The error happens only for the domain avvo.com. For all the other sites we
have tested, it worked well.
2. The code is
BuildNewDataQueryIfNeeded();
mDataQuery.setStartIndex(1);
mDataQuery.setMaxResults(0);
DataFeed dataFeed = null;
try
{
dataFeed = mAnalyticsService.getFeed(mDataQuery.getUrl(), DataFeed.class);
}
catch(java.lang.Exception ex)
{
Application.Log(Level.INFO, "Error getting total number of results from Google Analytics " + mDataQuery.getUrl().toString(), ex);
throw ex;
}
return dataFeed.getTotalResults();
where BuildNewDataQueryIfNeeded() builds the request from the above exception.
What is the expected output? What do you see instead?
The expected output is the number of items. Instead of this I get the exception.
What version of the product are you using? On what operating system?
gdata-analytics-2.1.jar
gdata-analytics-meta-2.1.jar
gdata-core-1.0.jar
google-collect-1.0-rc1.jar
jsr305.jar
What am I doing wrong?
Thank you for your help,
Stefan Matei
Original issue reported on code.google.com by sma...@gmail.com on 18 Oct 2011 at 7:00
Original issue reported on code.google.com by
sma...@gmail.com
on 18 Oct 2011 at 7:00