# ReportResult

- [JSON representation](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#SCHEMA_REPRESENTATION)
- [Header](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Header)
  - [JSON representation](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Header.SCHEMA_REPRESENTATION)
- [HeaderType](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#HeaderType)
- [Row](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row)
  - [JSON representation](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row.SCHEMA_REPRESENTATION)
- [Cell](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Cell)
  - [JSON representation](https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Cell.SCHEMA_REPRESENTATION)

Result of a generated report.

| JSON representation |
|---|
| ``` { "totalMatchedRows": string, "headers": [ { object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Header`) } ], "rows": [ { object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row`) } ], "totals": { object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row`) }, "averages": { object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row`) }, "warnings": [ string ], "startDate": { object (`https://developers.google.com/adsense/management/reference/rest/v2/Date`) }, "endDate": { object (`https://developers.google.com/adsense/management/reference/rest/v2/Date`) } } ``` |

| Fields ||
|---|---|
| `totalMatchedRows` | `string (https://developers.google.com/discovery/v1/type-format format)` The total number of rows matched by the report request. |
| `headers[]` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Header`)`` The header information; one for each dimension in the request, followed by one for each metric in the request. |
| `rows[]` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row`)`` The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. |
| `totals` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row`)`` The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty. |
| `averages` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Row`)`` The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty. |
| `warnings[]` | `string` Any warnings associated with generation of the report. These warnings are always returned in English. |
| `startDate` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/Date`)`` Required. Start date of the range (inclusive). |
| `endDate` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/Date`)`` Required. End date of the range (inclusive). |

## Header

The header information of the columns requested in the report.

| JSON representation |
|---|
| ``` { "name": string, "type": enum (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#HeaderType`), "currencyCode": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Name of the header. |
| `type` | ``enum (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#HeaderType`)`` Required. Type of the header. |
| `currencyCode` | `string` The [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217) of this column. Only present if the header type is METRIC_CURRENCY. |

## HeaderType

Type of the header.

| Enums ||
|---|---|
| `HEADER_TYPE_UNSPECIFIED` | Unspecified header. |
| `DIMENSION` | Dimension header type. |
| `METRIC_TALLY` | Tally header type. |
| `METRIC_RATIO` | Ratio header type. |
| `METRIC_CURRENCY` | Currency header type. |
| `METRIC_MILLISECONDS` | Milliseconds header type. |
| `METRIC_DECIMAL` | Decimal header type. |

## Row

Row representation.

| JSON representation |
|---|
| ``` { "cells": [ { object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Cell`) } ] } ``` |

| Fields ||
|---|---|
| `cells[]` | ``object (`https://developers.google.com/adsense/management/reference/rest/v2/ReportResult#Cell`)`` Cells in the row. |

## Cell

Cell representation.

| JSON representation |
|---|
| ``` { "value": string } ``` |

| Fields ||
|---|---|
| `value` | `string` Value in the cell. The dimension cells contain strings, and the metric cells contain numbers. |