AI-generated Key Takeaways
-
A saved report is generated using an HTTP GET request to a specified URL format.
-
The request includes required path parameters, specifically the
nameof the saved report. -
Optional query parameters can be used to customize the report, including date range, language, currency, and reporting time zone.
-
The request body should be empty, and a successful response will contain a ReportResult instance.
-
Authorization requires specific OAuth scopes related to AdSense access.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Generates a saved report.
HTTP request
GET https://adsense.googleapis.com/v2/{name=accounts/*/reports/*}/saved:generate
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 body contains an instance of ReportResult.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonly