google_api_analytics_reporting v0.3.0 GoogleApi.AnalyticsReporting.V4.Model.ReportRequest View Source
The main request class which specifies the Reporting API request.
Attributes
- cohortGroup (GoogleApi.AnalyticsReporting.V4.Model.CohortGroup.t): Cohort group associated with this request. If there is a cohort group
in the request the
ga:cohortdimension must be present. Every ReportRequest within abatchGetmethod must contain the samecohortGroupdefinition. Defaults tonil. - dateRanges (list(GoogleApi.AnalyticsReporting.V4.Model.DateRange.t)): Date ranges in the request. The request can have a maximum of 2 date
ranges. The response will contain a set of metric values for each
combination of the dimensions for each date range in the request. So, if
there are two date ranges, there will be two set of metric values, one for
the original date range and one for the second date range.
The
reportRequest.dateRangesfield should not be specified for cohorts or Lifetime value requests. If a date range is not provided, the default date range is (startDate: current date - 7 days, endDate: current date - 1 day). Every ReportRequest within abatchGetmethod must contain the samedateRangesdefinition. Defaults tonil. - dimensionFilterClauses (list(GoogleApi.AnalyticsReporting.V4.Model.DimensionFilterClause.t)): The dimension filter clauses for filtering Dimension Values. They are
logically combined with the
ANDoperator. Note that filtering occurs before any dimensions are aggregated, so that the returned metrics represent the total for only the relevant dimensions. Defaults tonil. - dimensions (list(GoogleApi.AnalyticsReporting.V4.Model.Dimension.t)): The dimensions requested.
Requests can have a total of 7 dimensions. Defaults to
nil. - filtersExpression (String.t): Dimension or metric filters that restrict the data returned for your
request. To use the
filtersExpression, supply a dimension or metric on which to filter, followed by the filter expression. For example, the following expression selectsga:browserdimension which starts with Firefox;ga:browser=~^Firefox. For more information on dimensions and metric filters, see Filters reference. Defaults tonil. - hideTotals (boolean()): If set to true, hides the total of all metrics for all the matching rows,
for every date range. The default false and will return the totals. Defaults to
nil. - hideValueRanges (boolean()): If set to true, hides the minimum and maximum across all matching rows.
The default is false and the value ranges are returned. Defaults to
nil. - includeEmptyRows (boolean()): If set to false, the response does not include rows if all the retrieved
metrics are equal to zero. The default is false which will exclude these
rows. Defaults to
nil. - metricFilterClauses (list(GoogleApi.AnalyticsReporting.V4.Model.MetricFilterClause.t)): The metric filter clauses. They are logically combined with the
ANDoperator. Metric filters look at only the first date range and not the comparing date range. Note that filtering on metrics occurs after the metrics are aggregated. Defaults tonil. - metrics (list(GoogleApi.AnalyticsReporting.V4.Model.Metric.t)): The metrics requested.
Requests must specify at least one metric. Requests can have a
total of 10 metrics. Defaults to
nil. - orderBys (list(GoogleApi.AnalyticsReporting.V4.Model.OrderBy.t)): Sort order on output rows. To compare two rows, the elements of the
following are applied in order until a difference is found. All date
ranges in the output get the same row order. Defaults to
nil. - pageSize (integer()): Page size is for paging and specifies the maximum number of returned rows.
Page size should be >= 0. A query returns the default of 1,000 rows.
The Analytics Core Reporting API returns a maximum of 100,000 rows per
request, no matter how many you ask for. It can also return fewer rows
than requested, if there aren't as many dimension segments as you expect.
For instance, there are fewer than 300 possible values for
ga:country, so when segmenting only by country, you can't get more than 300 rows, even if you setpageSizeto a higher value. Defaults tonil. - pageToken (String.t): A continuation token to get the next page of the results. Adding this to
the request will return the rows after the pageToken. The pageToken should
be the value returned in the nextPageToken parameter in the response to
the GetReports request. Defaults to
nil. - pivots (list(GoogleApi.AnalyticsReporting.V4.Model.Pivot.t)): The pivot definitions. Requests can have a maximum of 2 pivots. Defaults to
nil. - samplingLevel (String.t): The desired report
sample size.
If the the
samplingLevelfield is unspecified theDEFAULTsampling level is used. Every ReportRequest within abatchGetmethod must contain the samesamplingLeveldefinition. See developer guide for details. Defaults tonil. - segments (list(GoogleApi.AnalyticsReporting.V4.Model.Segment.t)): Segment the data returned for the request. A segment definition helps look
at a subset of the segment request. A request can contain up to four
segments. Every ReportRequest within a
batchGetmethod must contain the samesegmentsdefinition. Requests with segments must have thega:segmentdimension. Defaults tonil. - viewId (String.t): The Analytics
view ID
from which to retrieve data. Every ReportRequest
within a
batchGetmethod must contain the sameviewId. Defaults tonil.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GoogleApi.AnalyticsReporting.V4.Model.ReportRequest{
cohortGroup: GoogleApi.AnalyticsReporting.V4.Model.CohortGroup.t(),
dateRanges: [GoogleApi.AnalyticsReporting.V4.Model.DateRange.t()],
dimensionFilterClauses: [
GoogleApi.AnalyticsReporting.V4.Model.DimensionFilterClause.t()
],
dimensions: [GoogleApi.AnalyticsReporting.V4.Model.Dimension.t()],
filtersExpression: String.t(),
hideTotals: boolean(),
hideValueRanges: boolean(),
includeEmptyRows: boolean(),
metricFilterClauses: [
GoogleApi.AnalyticsReporting.V4.Model.MetricFilterClause.t()
],
metrics: [GoogleApi.AnalyticsReporting.V4.Model.Metric.t()],
orderBys: [GoogleApi.AnalyticsReporting.V4.Model.OrderBy.t()],
pageSize: integer(),
pageToken: String.t(),
pivots: [GoogleApi.AnalyticsReporting.V4.Model.Pivot.t()],
samplingLevel: String.t(),
segments: [GoogleApi.AnalyticsReporting.V4.Model.Segment.t()],
viewId: String.t()
}
t() :: %GoogleApi.AnalyticsReporting.V4.Model.ReportRequest{
cohortGroup: GoogleApi.AnalyticsReporting.V4.Model.CohortGroup.t(),
dateRanges: [GoogleApi.AnalyticsReporting.V4.Model.DateRange.t()],
dimensionFilterClauses: [
GoogleApi.AnalyticsReporting.V4.Model.DimensionFilterClause.t()
],
dimensions: [GoogleApi.AnalyticsReporting.V4.Model.Dimension.t()],
filtersExpression: String.t(),
hideTotals: boolean(),
hideValueRanges: boolean(),
includeEmptyRows: boolean(),
metricFilterClauses: [
GoogleApi.AnalyticsReporting.V4.Model.MetricFilterClause.t()
],
metrics: [GoogleApi.AnalyticsReporting.V4.Model.Metric.t()],
orderBys: [GoogleApi.AnalyticsReporting.V4.Model.OrderBy.t()],
pageSize: integer(),
pageToken: String.t(),
pivots: [GoogleApi.AnalyticsReporting.V4.Model.Pivot.t()],
samplingLevel: String.t(),
segments: [GoogleApi.AnalyticsReporting.V4.Model.Segment.t()],
viewId: String.t()
}
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.