Tatvic / RGoogleAnalytics

R Library to easily extract data from the Google Analytics API into R
227 stars 147 forks source link

Error in ParseDataFeedJSON(GA.Data) : code : 400 Reason #6

Closed veseliy closed 10 years ago

veseliy commented 10 years ago

From this day i have error Error in ParseDataFeedJSON(GA.Data) : code : 400 Reason : Invalid integer value: Pls. help me where i can faind error? query.list <- Init(start.date = "2013-11-28", end.date = "2013-11-30", dimensions = "ga:date,ga:pagePath,ga:hour,ga:medium", metrics = "ga:sessions,ga:pageviews", max.results = 10000000, sort = "-ga:date", filters = "ga:medium==referral", table.id = "ga:****")

shahkushan1 commented 10 years ago

Value of max.results should be either less than or equal to 10k depending on the number of records you want to retrieve. If you invoke either Pagination or Query Splitting in GetReportData(), then max.results is automatically set to 10k to save your API quota.