The date and time the report coverage ends. The format is YYYY-MM-DD.
granularity
string
The report data organized by hour, day, week, and month.
HOURLY
The startTime and endTime are ≤ 7 days apart, and the startTime is ≤ 30 days in the past.
Use: "granularity":"HOURLY",
The hour, 00 to 23, appends to the date string as HH.
DAILY
The startTime and endTime are ≤ 90 days apart, and the startTime is ≤ 90 days in the past.
WEEKLY
The date value is the Monday of the designated week.
The startTime and endTime are > 14 days and ≤ 365 days apart, and the startTime is ≤ 24 months in the past.
MONTHLY
The date value is the first day of the designated month.
The startTime and endTime are > 3 months apart, and the startTime is ≤ 24 months in the past.
groupBy
[string]
Use the groupBy field to group responses by selected dimensions. If groupBy specifies age, gender, and geodimensions, returnRowTotals and returnGrandTotals must be false.
The following groupBy descriptions include supported values per dimension:
adminArea
The adminArea dimension is a group of states or the equivalent according to its associated country. Use Search for Geolocations to retrieve geolocations.
In Get Ad Group-Level Reports, you need to use the adminArea dimension with countryCode. The locality dimension is optional.
ageRange
The ageRange dimension is a group of the user demographic age ranges.
The locality dimension is the city or group of cities equivalent according to its associated adminArea. See Search for Geolocations to retrieve geolocations.
In Get Ad Group-Level Reports, the locality dimension with higher dimensions is available to use with countryCode and adminArea.
returnGrandTotals
boolean
Returns the total of all the rows in the result set. If you don’t specify granularity, returnRowTotals must be true. If you specify granularity in the payload, returnGrandTotals must be false. The default is false.
returnRecordsWithNoMetrics
boolean
Specifies whether the API returns records without metrics. The default is false.
returnRowTotals
boolean
Specifies whether to return the totals of each row. If you don’t specify granularity, returnRowTotals must be true. If you specify granularity in the payload, returnGrandTotals must be false. The default is false. For example: