Generate

Generate an AdSense report based on the saved report ID sent in the query parameters

5 variables
12 variables

Generate an AdSense report based on the saved report ID sent in the query parameters

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • View and manage your AdSense data
  • View your AdSense data

Input

This building block consumes 5 input parameters

  = Parameter name
  = Format

accountId STRING Required

Account to which the saved reports belong

savedReportId STRING Required

The saved report to retrieve

locale STRING

Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified

maxResults INTEGER

The maximum number of rows of report data to return

startIndex INTEGER

Index of the first row of report data to return

Output

This building block provides 12 output parameters

  = Parameter name
  = Format

averages[] STRING

endDate STRING

The requested end date in yyyy-mm-dd format

headers[] OBJECT

headers[].currency STRING

The currency of this column. Only present if the header type is METRIC_CURRENCY

headers[].name STRING

The name of the header

headers[].type STRING

The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY

kind STRING

Kind this is, in this case adsense#report

rows[] OBJECT_ARRAY

startDate STRING

The requested start date in yyyy-mm-dd format

totalMatchedRows INTEGER

The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit

totals[] STRING

warnings[] STRING