- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Generates a csv formatted ad hoc report.
HTTP request
GET https://adsense.googleapis.com/v2/{account=accounts/*}/reports:generateCsv
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
account |
Required. The account which owns the collection of reports. Format: accounts/{account} |
Query parameters
Parameters | |
---|---|
dimensions[] |
Dimensions to base the report on. |
metrics[] |
Required. Reporting metrics. |
filters[] |
A list of filters to apply to the report. All provided filters must match in order for the data to be included in the report. |
dateRange |
Date range of the report, if unset the range will be considered CUSTOM. |
startDate |
Start of the date range to report on, inclusive. Only needed when dateRange is CUSTOM or unspecified. |
endDate |
End of the date range to report on, inclusive. Only needed when dateRange is CUSTOM or unspecified. |
orderBy[] |
The name of a dimension or metric to sort the resulting report on, can be prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. |
languageCode |
The language to use for translating report output. If unspecified, this defaults to English ("en"). If the given language is not supported, report output will be returned in English. The language is specified as an IETF BCP-47 language code. |
currencyCode |
The ISO-4217 currency code to use when reporting on monetary metrics. Defaults to the account's currency if not set. |
limit |
The maximum number of rows of report data to return. Reports producing more rows than the requested limit will be truncated. If unset, this defaults to 100,000 rows for Report truncation can be identified (for |
reportingTimeZone |
Timezone in which to generate the report. If unspecified, this defaults to the account timezone. For more information, see changing the time zone of your reports. |
Request body
The request body must be empty.
Response body
If successful, the response is a generic HTTP response whose format is defined by the method.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsense
https://www.googleapis.com/auth/adsense.readonly