This endpoint makes a request in the Kevel database for the criteria passed in the parameters, and then returns a GUID that can be used to pull the finished report. Criteria can be specified for the report using an object titled "criteria". Report IDs will persist for 10 days.
What You Can Group & Filter By
Type | Property | Group By (
) | Filter By (
) | Exclude Filter By (
) |
---|---|---|---|---|
Date Grouping |
| Yes | No | No |
Performance Dimensions |
| Yes | Yes | Yes |
Performance Dimensions |
| Yes | No | No |
(DEPRECATED) Product Performance Dimensions |
| Yes | Yes | Yes |
(NEW) Promoted/Purchased Product Performance Dimensions |
| Yes | Yes | Yes |
Inventory Dimensions |
| Yes | Yes | Yes |
InformationWhen grouping/filtering by region, be sure to also group/filter by countryCode.
When Keyword is used in inventory reports only Selections will be returned in the results, not ADRs.
InformationUsing any of the following ID "GroupBy" dimensions:
- "flightId", "advertiserId", "campaignId", "publisherAccountId", "creativeId", "adId", "channelId", "priorityId", "adTypeId", "siteId", "zoneId"
- "promotedProductSkuId", "promotedProductMainCategoryId", "promotedProductBranId", "promotedProductMerchantId", "purchasedProductSkuId", "purchasedProductMainCategoryId", "purchasedProductBranId", "purchasedProductMerchantId",
will result in returning the corresponding name field e.g. "flightId"->"Flight" in Records[]->Details[]->Grouping, as in the example response.
Important Troubleshooting Notes
-
Reports that are grouped by
Keyword
ANDCountry
orMetro
AND include a longer than 31 day time span are too large to be queued. -
Keywords can be a performance or inventory type dimension.
- When
Keyword
is sent as the onlyGroupBy
property or when combined with other InventoryGroupBy
properties, you will get Request Keywords. Request Keywords include ALL keywords values that were sent in the decision request. - When
Keyword
is sent in combination with any PerformanceGroupBy
property you will get Matching Keywords. Matching Keywords include ONLY keywords from the decision request that were used to match the selected Ad, found at the Flight or Ad level.
- When
-
If the
optionId
GroupBy is chosen, the report will also be grouped byRateTypeId
. This is to meant to break out data on separate lines if the flight has changedRateType
during the time period. -
FlightId
will be returned asOptionId
in the report. -
Reports that GroupBy
hour
cannot use a time frame longer than 35 days from the present. -
Reports may not be queued that groups by or filters by both Keywords and Region or City.
-
Availability of certain dimensions:
- Device dimensions (
modelName
,brandName
,advertisedOs
,osMajorVersion
,osMinorVersion
,browser
,browserMajorVersion
,browserMinorVersion
,formFactor
) are not available for "request" metrics. In other words, it is limited to performance reports and is currently not supported for inventory reports. Additionally,osMajorVersion
, andosMinorVersion
only have data from Oct 1, 2022, querying these dimensions prior to that date will return an error message. - (DEPRECATED) Product dimensions (
productSkuId
,productMainCategoryid
,productBrandId
,productMerchantId
) are not available for "request" metrics. In other words, it is limited to performance reports and is currently not supported for inventory reports. Product dimensions only have data from Oct 1, 2022, querying these dimensions prior to that date will return an error message. - Promoted/Purchased Product dimensions (
promotedProductSkuId
,promotedProductMainCategoryId
,promotedProductBrandId
,promotedProductMerchantId
,purchasedProductSkuId
,purchasedProductMainCategoryId
,purchasedProductBrandId
,purchasedProductMerchantId
) are not available for "request" metrics. In other words, it is limited to performance reports and is currently not supported for inventory reports. Product dimensions only have data from 14th August 2024 querying these dimensions prior to that date will return an error message.
- Device dimensions (
-
For device reporting to be accurate, the client's UA needs to be passed through to Kevel via the User-Agent header if the customer is proxying events through their server. Failure to do so might cause inconsistent attribution, resulting in e.g. clicks without impressions, as one is not attributed to the same device.
-
Ad Decision Request, Selection Request totals are only available for Inventory Type
GroupBy
properties, and only in the default TimeZone (UTC). -
Report becomes a performance type report as soon as any Performance dimension/
GroupBy
is included.
Time Zones
- Reports can be generated in various Time Zones by including "TimeZone" as a body param in the request body.
- Supported values can be found here
- Default value is UTC
- Including a non-default Time Zone means that you will not get request metrics (Ad Decision Requests, Selection Requests, Fill Rate, etc.) in your results.
Report Start Date and End Date
- Start date can be set using the following body parameters:
StartDate
orStartDateISO
- End date can be set using the following body parameters:
EndDate
orEndDateISO
- All of these params accept dates in the following formats:
- ISO 8601 e.g. YYYY-MM-DDTHH:MM:SS
- month/day/year e.g. MM/DD/YYYY
- When using ISO 8601 format and grouping by
day
,week
,month
or total (no date GroupBy) the date will default to the date that is set, regardless of what is set in the hour, minutes and seconds sections. Ex. Setting anEndDate
of 2024-03-04T00:00:00 will include all of the data for March 4th. - When using ISO 8601 format and grouping by
hour
the hour value will be used to generate the report. ex. 2024-01-31T10:00:00 would set the start or end date to the 10th hour of January 31st.- Hour is the most granular level of date grouping we currently support
- End dates are inclusive.
Report Creation Errors
All errors are wrapped in an {"Error"}
object.
Error Code | JSON Response | Error Description |
---|---|---|
500 |
| Report queuing is unavailable. Check the status page for details. If none are available, contact Kevel support. |
403 |
| No API key in request, or the key does not belong to an account. |
400 |
| No |
400 |
| Invalid JSON passed in the request. Includes a string with the parsing error. |
400 |
| The Start Date is after the End Date. |
400 |
| Both |
400 |
| Both |
400 |
|
|
400 |
|
|
400 |
| A parameter (such as |
400 |
| One of the |
400 |
| Invalid |
400 |
|
|
400 |
|
|
400 |
| Parameter property does not exist. |
400 |
| Parameter value must be an integer. |
400 |
| Parameter value must be a string (in the case of |
400 |
| Reports that are grouped by Keyword and Country/Metro AND include a longer than 31 day time span cannot be queued. |
400 |
| Reports that use the hourly date group can only be requested for a period within the past 35 days Or when a report exceeds 1.3 million rows in total. |
400 |
| Reports cannot use both keywords and non-GMT (UTC) timezones. |
400 |
| The value of |
400 |
| The value of
|