The code i'm using is given below , the problem is this is returning only maximum of 1000 rows. What should i add in this code in order to get the whole data?
def get_report(analytics):
"""Queries the Analytics Reporting API V4.
Args:
analytics: An authorized Analytics Reporting API V4 service object.
Returns:
The Analytics Reporting API V4 response.
"""
return analytics.reports().batchGet(
body={
'reportRequests': [
{
'viewId': VIEW_ID,
'dateRanges': [{'startDate': start , 'endDate': end }],
'metrics': [{'expression': 'ga:totalEvents'}],
'dimensions': [{ 'name': 'ga:eventLabel' }],
'filtersExpression': 'ga:eventLabel=~C_NOTI_TRAIL*'
}]
}
).execute()