google api - JSON response data size issue -


i using discover google analytics platform generate queries in order make callouts ga inside salesforce application. upon creating custom report api query uri generated presents data report in json format.

one example uri looks following:

https://www.googleapis.com/analytics/v3/data/ga?ids=[my gi id] &start-date=[start date]&end-date=[end date[&metrics=ga%3asessions%2cga%3asessionduration&dimensions=ga%3adayssincelastsession%2cga%3acampaign%2cga%3asourcemedium%2cga%3asocialnetwork%2cga%3adimension2&filters=ga%3asessionduration%3e1&access_token=[my access token] 

the issue presented data limited 1000 rows max, , not sure how can surpass size view limit.

the google analytics api has field can send called max-results if add

&max-results=10000 

to request paging of 10000 rows. max can set if there more results nextlink returned results can use make more requests additional data.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -