Close httplib2 connections.
fetchRows(name, pageSize=None, pageToken=None, x__xgafv=None)
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.
fetchRows_next(previous_request, previous_response)
Retrieves the next page of results.
close()
Close httplib2 connections.
fetchRows(name, pageSize=None, pageToken=None, x__xgafv=None)
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.
Args:
name: string, The report result being fetched. Format: `curators/{account_id}/reports/{report_id}/results/{report_result_id}` (required)
pageSize: integer, 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 greater than 10,000 will be reduced to 10,000.
pageToken: string, Optional. A page token, received from a previous `FetchReportResultRows` call. Provide this to retrieve the second and subsequent batches of rows.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # The response message for the fetch report result rows endpoint.
"dateRanges": [ # The computed fixed date ranges this report includes. Only returned with the first page of results (when page_token is not included in the request).
{ # A date range between two fixed dates (inclusive of end date).
"endDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. The end date (inclusive) of this date range.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"startDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. The start date of this date range.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"nextPageToken": "A String", # A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
"rows": [ # Up to `page_size` rows of report data.
{ # A row of report data.
"dimensionValues": [ # The order of the dimension values is the same as the order of the dimensions specified in the request.
{ # Represents a single value in a report.
"boolValue": True or False, # For boolean values.
"bytesValue": "A String", # For bytes values.
"doubleListValue": { # A list of double values. # For lists of double values.
"values": [ # The values
3.14,
],
},
"doubleValue": 3.14, # For double values.
"intListValue": { # A list of integer values. # For lists of integer values.
"values": [ # The values
"A String",
],
},
"intValue": "A String", # For integer values.
"stringListValue": { # A list of string values. # For lists of string values.
"values": [ # The values
"A String",
],
},
"stringValue": "A String", # For string values.
},
],
"metricValueGroups": [ # The length of the metric_value_groups field will be equal to the length of the date_ranges field in the fetch response. The metric_value_groups field is ordered such that each index corresponds to the date_range at the same index. For example, given date_ranges [x, y], metric_value_groups will have a length of two. The first entry in metric_value_groups represents the metrics for date x and the second entry in metric_value_groups represents the metrics for date y.
{ # 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.
"primaryValues": [ # Data for the PRIMARY MetricValueType.
{ # Represents a single value in a report.
"boolValue": True or False, # For boolean values.
"bytesValue": "A String", # For bytes values.
"doubleListValue": { # A list of double values. # For lists of double values.
"values": [ # The values
3.14,
],
},
"doubleValue": 3.14, # For double values.
"intListValue": { # A list of integer values. # For lists of integer values.
"values": [ # The values
"A String",
],
},
"intValue": "A String", # For integer values.
"stringListValue": { # A list of string values. # For lists of string values.
"values": [ # The values
"A String",
],
},
"stringValue": "A String", # For string values.
},
],
},
],
},
],
"runTime": "A String", # 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.
"totalRowCount": 42, # The total number of rows available from this report. Useful for pagination. Only returned with the first page of results (when page_token is not included in the request).
}
fetchRows_next(previous_request, previous_response)
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.