AI-generated Key Takeaways
-
The
generateCsv
method generates a CSV formatted saved report. -
The HTTP request uses a GET method to the specified URL, following gRPC Transcoding syntax.
-
Path parameters include the required
name
parameter specifying the saved report. -
Query parameters allow for filtering by
dateRange
,startDate
,endDate
,languageCode
,currencyCode
, andreportingTimeZone
. -
The request body must be empty.
-
A successful response is a generic HTTP response.
-
Authorization requires either the
https://www.googleapis.com/auth/adsense
orhttps://www.googleapis.com/auth/adsense.readonly
OAuth scopes.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Generates a csv formatted saved report.
HTTP request
GET https://adsense.googleapis.com/v2/{name=accounts/*/reports/*}/saved:generateCsv
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Name of the saved report. Format: accounts/{account}/reports/{report} |
Query parameters
Parameters | |
---|---|
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. |
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. |
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