# NOT RUN {
# This example assumes that a token object is already created
# Create a list of Query Parameters
query.list <- Init(start.date = "2014-11-28",
end.date = "2014-12-04",
dimensions = "ga:date",
metrics = "ga:sessions,ga:pageviews",
max.results = 1000,
table.id = "ga:33093633")
# Create the query object
ga.query <- QueryBuilder(query.list)
# Fire the query to the Google Analytics API
ga.df <- GetReportData(query, oauth_token)
ga.df <- GetReportData(query, oauth_token, split_daywise=True)
ga.df <- GetReportData(query, oauth_token, paginate_query=True)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab