QueueTrended(reportsuite.id, date.from, date.to, metrics, elements, top = 0, start = 0, selected = c(), search = c(), search.type = "or", date.granularity = "day", segment.id = "", segment.inline = "", classification = character(0), anomaly.detection = FALSE, data.current = FALSE, expedite = FALSE, interval.seconds = 5, max.attempts = 120, validate = TRUE, enqueueOnly = FALSE)Because of the Reporting API structure, this function first requests the report, then checks the reporting queue to see if the report is completed, and when the report returns as "done" pulls the report from the API. This checking process will occur up to the specified number of times (default 120), with a delay between status checks (default 5 seconds). If the report does not return as "done" after the number of tries have completed, the function will return an error message.
Note: Because of the multiple argument type ("top" and "start" OR "selected"), keyword arguments are generally needed towards the end of the function call instead of just positional arguments.
## Not run:
# report.data <- QueueTrended("your_report_suite",
# "2014-01-01",
# "2014-01-07",
# c("visits","uniquevisitors","pageviews","event10"),
# c("page","geoCountry","geoCity")
# )
# ## End(Not run)
Run the code above in your browser using DataLab