Metrics
The metrics reported by the endpoints are:| Metric Group | Description | |
|---|---|---|
| A | impressions | Number of times product is shown in a banner |
| B | clicks | Number of clicks on product |
| C | cost | Amount spent for clicks on products |
| D | saleUnits | Number of products sold attributed to clicks |
| E | revenue | Revenue generated by sales |
| F | CR = Conversion Rate | salesUnits / clicks |
| G | CPO = Cost Per Order | cost / salesUnits |
| H | COS = Cost of Sale | cost / revenue |
| I | ROAS = Return On Add Spend | revenue / cost |
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 seller’s 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:Parameter | Definition | Type | Required? |
|---|---|---|---|
| Show only metrics for this advertiser. |
| No |
| Specify the click attribution policy for salesUnits, revenue, CR, CPO, COS, and ROAS |
| No |
| Return up to the first count rows of data (default is all rows). |
| No |
| Filter out all events that occur after date (default is today’s date). |
| No |
| Specify the aggregation interval for events used to compute stats (default is “day”). |
| |
| Show only metrics for this seller (default all sellers). |
| |
| Filter out all events that occur before date (default is the value of |
| No |
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.
Query Parameter | Format | Meaning |
|---|---|---|
|
| Filter out all events that occur before date (default is the value of |
|
| Filter out all events that occur after date (default is today’s 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.
Query Parameter | Options | Meaning |
|---|---|---|
| Int > 0 | Return up to the first count rows of data (default is to return all rows available). |
The following query will return up to 100 rows of data.
Seller Stats
Get performance statistics aggregated for sellers.Parameter | Definition | Type | Required? |
|---|---|---|---|
| Show only metrics for this advertiser. |
| No |
| Specify the click attribution policy for salesUnits, revenue, CR, CPO, COS, and ROAS |
| No |
| Return up to the first count rows of data (default is all rows). |
| No |
| Filter out all events that occur after date (default is today’s date). |
| No |
| Specify the aggregation interval for events used to compute stats (default is “day”). |
| No |
| Show only metrics for this seller (default all sellers). |
| No |
| Filter out all events that occur before date (default is the value of |
| No |
Campaign Stats
Get performance statistics aggregated for campaigns.Parameter | Definition | Type | Required? |
|---|---|---|---|
| Show only metrics for this advertiser. |
| No |
| Show only metrics for this campaign (default all campaigns). |
| No |
| Specify the click attribution policy for salesUnits, revenue, CR, CPO, COS, and ROAS |
| No |
| Return up to the first count rows of data (default is all rows). |
| No |
| Filter out all events that occur after date (default is today’s date). |
| No |
| Specify the aggregation interval for events used to compute stats (default is “day”). |
| No |
| Filter out all events that occur before date (default is the value of |
| No |
Seller Campaign Stats
Get performance statistics aggregated for seller campaigns.Parameter | Definition | Type | Required? |
|---|---|---|---|
| Show only metrics for this advertiser. |
| No |
| Show only metrics for this campaign (default all campaigns). |
| No |
| Specify the click attribution policy for salesUnits, revenue, CR, CPO, COS, and ROAS |
| No |
| Return up to the first count rows of data (default is all rows). |
| No |
| Filter out all events that occur after date (default is today’s date). |
| No |
| Specify the aggregation interval for events used to compute stats (default is “day”). |
| No |
| Show only metrics for this seller (default all sellers). |
| No |
| Filter out all events that occur before date (default is the value of |
| No |
campaignId, sellerId, and sellerName appear in the first three columns of the output. These are followed by the interval size column. The remaining columns are metrics.