Metrics
The metrics reported by the endpoints are:
The last six metrics can be computed in two ways depending on the policy to count only the sales that result from clicks on the same sellers product in a banner (same-seller) or not (any-seller). Reporting can be controlled by clickAttributionPolicy.
Aggregation Interval Size
The duration of the aggregation interval for the fundamental events is controlled by the filter parameter intervalSize. (Consider also the name frequency.) The valid values for this parameter are:
For example, the following request fetches aggregated seller statistics for the current day with a granularity of one row per hour. Every seller managed by this advertiser will have up to 24 rows in the response.
The default interval size is
day. If the interval size is hour, then the maximum date range allowed is one month.Date Filtering
Filtering the results to events that happened in a temporal interval is done by setting the date filter parameters. These arestartDate and the endDate. The start date includes all events timestamped since the beginning of that day while the end date includes events until the end of day.
If the end date is left of it defaults to today. If the start date is left off it defaults to the end date. As a result, the default query returns one day of stats. Using just the end date returns a single day as well:
There are a few constraints. The start date must not be in the future and must be on or precede the end date. The format to use for each is
YYY-MM-DD (e.g. 2018-04-30). The maximum duration of the date range is 1 year. If the granularity is hour, then the maximum duration of the date range is 1 month. Note that month and year aggregate values may contain partial data if filtered by date.Count Filtering
Filtering the results to a maximum number of data rows is done by setting the count filter parameter. When combined withstartDate this can be used to perform simple pagination. For example the first page can have a count of 100; the second page can start on the day after the last date in the first result and still have a count of 100 and so on.
The following query will return up to 100 rows of data.
The default is to report all rows.