In case if a single query returns more than 10k rows,the Core Reporting API returns a subset of the rows at a time. This function loops across all such subsets (pages) in order to retrieve data corresponding to the entire query. The maximum number of rows corresponding to a single query that can be retrieved via Pagination is 1 M.
PaginateQuery(query.builder, pages, token, delay)
Name of the object corresponding to the query builder class
Integer representing the number of pages across which the query has to be paginated
Token Object created by Auth()
Time delay in seconds between successive queries in order to avoid Rate Limit Error
list containing Column Headers and the data collated across all the pages of the query
https://developers.google.com/analytics/devguides/reporting/core/v2/gdataReferenceDataFeed#largeDataResults