Introduction
Four separated endpoints support requests to create campaign and line item reports and retrieve the report data and status. You can find those endpoints in our stable version Demand Side Analytics.Endpoints
Verb | Endpoint | Description |
|---|---|---|
POST |
| Create an offsite report request |
- First, create a request for the campaign or line item report with the desired attributes,
- This generates a
reportIdrepresenting the report. - Next, use the
reportIdto poll the report status endpoint until one is successfully computed (available in stable - see above) - Finally, download the report using the report output endpoint (available in stable - see above)
- Report outputs are cached for at least 1 hour before expiration. Exact expiration is indicated by the
expiresAtfield in the /status response.
Report Request Attributes
Attribute | Data Type | Description |
|---|---|---|
| string / list\ | Campaign or Line Item ID(s) of the desired report Examples:
Accepted values: single or list of string/int64 (max 50 ids per call) Writeable? N / Nullable? N |
| enum | Report types are pre-packaged reports that allow the specification of the report breakdown. SeeReport Typesfor more details about each of them.
Accepted values: refer toReport Typespage for a complete list of available values Writeable? N / Nullable? N |
| list\ | Dimension attributes desired for metrics breakdown for the custom report of the campaign(s) / line item(s).
Accepted values: refer toMetrics and Dimensionspage for a complete list of available values Writeable? N / Nullable? N |
| list\ | Quantitative metrics desired in the custom report of the campaign(s) / line item(s).
Accepted values: refer toMetrics and Dimensionspage for a complete list of available values Writeable? N / Nullable? N |
| date | Start date to report (inclusive) Accepted values: Writeable? N / Nullable? N |
| date | End date to report (inclusive) Accepted values: Writeable? N / Nullable? N |
| enum | Campaigntype Accepted values: Writeable? N / Nullable? N |
| string | Time zone to consider in the report Accepted values:IANA (TZ database)time zones (example: Writeable? N / Nullable? Y |
| enum | The post-click attribution window, defined as the maximum number of days considered between a click and a conversion for attribution; conversions are attributed to the date of conversion, not the date of click; defaults to campaign settings if omitted; must be specified if The post-click attribution window, defined as the maximum number of days considered between a click and a conversion for attribution; conversions are attributed to the date of conversion, not the date of click. Defaults to campaign settings if omitted; must be specified if Accepted values: Writeable? N / Nullable? Y |
| enum | The post-view attribution window, defined as the maximum number of days considered between an impression and a conversion for attribution; conversions are attributed to the date of conversion, not the date of impression; defaults to campaign settings if omitted; must be less than or equal to The post-view attribution window, defined as the maximum number of days considered between an impression and a conversion for attribution; conversions are attributed to the date of conversion, not the date of impression. Defaults to campaign settings if omitted; must be less than or equal to Accepted values: Writeable? N / Nullable? Y |
| enum | Filter on specific sales channel: online or offline Accepted values: Writeable? N / Nullable? Y |
| enum | Format of the report data returned Accepted values: Default: Writeable? N / Nullable? N |
- Writeable (Y/N): Indicates if the field can be modified in requests.
- Nullable (Y/N): Indicates if the field can accept null/empty values.
- Primary Key: A unique, immutable identifier of the entity, generated internally by Criteo. Primary keys are typically ID fields (e.g.,
retailerId,campaignId,lineItemId) and are usually required in the URL path.
Offsite Dimensions
Those dimensions are specific to offsite reports.Dimension Name | Dimension Type | Description | Example |
|---|---|---|---|
| Dimension | The format size of the placement ad, usually defined in width × height pixels. |
|
| Dimension | The ad strategy billing type. Typically Cost Per Click (CPC) or Cost Per Mille (CPM). |
|
| Dimension | Category of video ads not tied to video content. Seen in native feeds, slideshows, etc. |
|
| Dimension | The type of creative asset used in the ad, such as Display or Video. |
|
| Dimension | The domain of the publisher where the ad was rendered. |
|
| Dimension | The Supply-Side Platform (SSP) responsible for the ad event. |
|
Create an offsite report request
The dimensions specific to offsite reports can be found here.Sample request
Responses
Response | Description |
|---|---|
🔵 | Call executed with success
When generating a report type using the |
🔴 | Common Validation Errors
|
🔴 | Validation Error In the API, win rate metric will be available to sponsored product campaigns only. When using this metric, please specify “title”: ” “detail”: “Please provide either the |
🔴 | Expired or Lost Report Error The report is expired, lost, or failed to create. Re-create the report through a new request. |