An S4 class to represent a generalised reporting API query.
viewId
The view ID of the query, as a viewId object
metrics
The metrics to query, an object belonging to the .metrics superclass.
dimensions
The dimensions of the query, an object belonging to the .dimensions superclass.
sortBy
The order and direction of metrics/dimensions to sort by, an object belonging to the .sortBy superclass.
filters
Dimension or metrics conditions to filter the rows by, an object belonging to the .tableFilter superclass.
maxResults
An interger giving the maximum number of rows to return.
creds
The API credentials to use for the query.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.