PaginateQuery: Paginate through pages of Google Analytics Query responses In...

Description Usage Arguments Value See Also

Description

Paginate through pages of Google Analytics Query responses

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.

Usage

1
PaginateQuery(query.builder, pages, token, delay)

Arguments

query.builder

Name of the object corresponding to the query builder class

pages

Integer representing the number of pages across which the query has to be paginated

token

Token Object created by Auth()

delay

Time delay in seconds between successive queries in order to avoid Rate Limit Error

Value

list containing Column Headers and the data collated across all the pages of the query

See Also

https://developers.google.com/analytics/devguides/reporting/core/v2/gdataReferenceDataFeed#largeDataResults


Tatvic/RGoogleAnalytics documentation built on May 9, 2019, 4:20 p.m.