- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Row
- MetricValueGroup
Returns the result rows from a completed report. The caller must have previously called RunReport
and waited for that operation to complete. The rows will be returned according to the order specified by the sorts
member of the report definition.
HTTP request
GET https://admanager.googleapis.com/v1/{name}:fetchRows
Path parameters
Parameters | |
---|---|
name |
The report result being fetched. Format: |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 1,000 rows will be returned. The maximum value is 10,000; values above 10,000 will be reduced to 10,000. |
pageToken |
Optional. A page token, received from a previous |
Request body
The request body must be empty.
Response body
The response message for the fetch report result rows endpoint.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "rows": [ { object ( |
Fields | |
---|---|
rows[] |
Up to |
runTime |
The time at which the report was scheduled to run. For non-scheduled reports, this is the time at which the report was requested to be run. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
dateRanges[] |
The computed fixed date ranges this report includes. Only returned with the first page of results (when pageToken is not included in the request). |
comparisonDateRanges[] |
The computed comparison fixed date ranges this report includes. Only returned with the first page of results (when pageToken is not included in the request). |
totalRowCount |
The total number of rows available from this report. Useful for pagination. Only returned with the first page of results (when pageToken is not included in the request). |
nextPageToken |
A token that can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.
Row
A row of report data.
JSON representation |
---|
{ "dimensionValues": [ { object ( |
Fields | |
---|---|
dimensionValues[] |
The order of the dimension values is the same as the order of the dimensions specified in the request. |
metricValueGroups[] |
The length of the metricValueGroups field will be equal to the length of the dateRanges field in the fetch response. The metricValueGroups field is ordered such that each index corresponds to the dateRange at the same index. For example, given dateRanges [x, y], metricValueGroups will have a length of two. The first entry in metricValueGroups represents the metrics for date x and the second entry in metricValueGroups represents the metrics for date y. |
MetricValueGroup
Contains all metric values requested for a single date range and set of column dimension values (returned in the columns field of the response). The order of the metrics in each field corresponds to the order of the metrics specified in the request.
JSON representation |
---|
{ "primaryValues": [ { object ( |
Fields | |
---|---|
primaryValues[] |
Data for the PRIMARY MetricValueType. |
primaryPercentOfTotalValues[] |
Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. |
comparisonValues[] |
Data for the COMPARISON MetricValueType. |
comparisonPercentOfTotalValues[] |
Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. |
absoluteChangeValues[] |
Data for the ABSOLUTE_CHANGE MetricValueType. |
relativeChangeValues[] |
Data for the RELATIVE_CHANGE MetricValueType. |
flagValues[] |
If true, the flag's conditions are met. If false, the flag's conditions are not met. flagValues has the same length as flags and index i of flagValues represents the flag at index i of flags. |