Skip to main content

Introduction

This endpoint enables Retail Media DSP partners to request flexible reporting at the account level. This expands on existing Line Item and Campaign report capabilities by allowing reporting across one or more Account IDs, up to five at a time. The endpoint supports asynchronous report generation and provides access to the same set of metrics and dimensions .
You can find the list of DSP endpoints available for the stable version here: Demand Side Analytics Endpoints.
Filter Parity This endpoint supports the same filters as the Campaign and Line Item endpoints, with one key difference: it introduces theaccountIds attribute, allowing up to 5 account IDs per request for account-level reporting. It also only supports date ranges of up to 31 days at a time.

Endpoint

Verb

Endpoint

Description

POST

/preview/retail-media/reports/accounts

Request flexible reporting at the account level

Reporting Asynchronous Workflow
  • First, create a request for the account report with the desired attributes.
  • This generates a reportId representing the report.
  • Next, use the reportId to poll the report status endpoint until one is successfully computed (available in Stable).
  • Finally, download the report using the report output endpoint (available in Stable).
  • Report outputs are cached for at least 1 hour before expiration. Exact expiration is indicated by the expiresAt field in the /status response.

Report Request Attributes

Attribute

Data Type

Description

accountIds*

string

Account ID(s) of the desired report

Examples:

accountIds: “12345”

accountIds: [“12345”, “67890”]

Accepted values: single or list of string/int64 (max 5 IDs per call)

Writeable? N / Nullable? N

aggregationLevel

enum

Accepted values:campaign,lineItem

reportType

enum

Report types are pre-packaged reports that allow the specification of the report breakdown. See Report Types for more details about each of them.

  • Note*: whenmetricsanddimensionsare used, thereportTypeis ignored.

Accepted values: refer toReport Typespage for a complete list of available values

Writeable? N / Nullable? N

dimensions

list<enum>

Dimension attributes desired for metrics breakdown for the custom report of the campaign(s) / line item(s).

  • Note: whenmetricsanddimensionsare used, thereportTypeis automatically ignored

Accepted values: refer to Metrics and Dimensions page for a complete list of available values

Writeable? N / Nullable? N

metrics

list<enum>

Quantitative metrics desired in the custom report of the campaign(s) / line item(s).

  • Note*:
  • whenmetricsanddimensionsare used, thereportTypeis automatically ignored
  • when includingwinRatemetric, it is required to either definecampaignTypeassponsoredProductsor includecampaignTypeNamein the list of dimensions

Accepted values: refer to Metrics and Dimensions page for a complete list of available values

Writeable? N / Nullable? N

startDate*

date

Start date to report (inclusive)

Accepted values:YYYY-MM-DD

Writeable? N / Nullable? N

endDate*

date

End date to report (inclusive)

Accepted values:YYYY-MM-DD

Writeable? N / Nullable? N

campaignType

enum

Campaigntype

Accepted values:sponsoredProducts,onSiteDisplays

Writeable? N / Nullable? N

timeZone

string

Time zone to consider in the report

Accepted values:IANA (TZ database)time zones (example:America/New_York,Europe/Paris,Asia/Tokyo,UTC)

Writeable? N / Nullable? Y

clickAttributionWindow

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 ifviewAttributionWindowis one of the accepted values.

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 ifviewAttributionWindowis one of the accepted values.

Accepted values:none,7D,14D,30D

Writeable? N / Nullable? Y

viewAttributionWindow

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 toclickAttributionWindow; must be specified ifclickAttributionWindowis one of the accepted values.

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 toclickAttributionWindow; must be specified ifclickAttributionWindowis one of the accepted values.

Accepted values:none,1D,7D,14D,30D

Writeable? N / Nullable? Y

salesChannel

enum

Filter on specific sales channel: online or offline

Accepted values:online,offline

Writeable? N / Nullable? Y

format

enum

Format of the report data returned

Accepted values:json,json-compact,json-newline,csv

Default:json

Writeable? N / Nullable? N

searchTermTypes

string

The match type used to associate a search term and keywords entered for the campaign.

Accepted values:

Entered: the search term matches exactly what was entered manually by the Commerce Max user

Searched: the search term matches what a shopper searched on the retailer’s website.

Null: All other cases, typically corresponding to automatically matched keywords.

searchTermTargeting

string

Indicates how the keyword was targeted — either manually by the user or automatically by the platform.

Manual targeting: The search term matches a keyword entered in Commerce Max or a variation created via stemming.

Automatic targeting: The search term was added by the automated keyword tool.

targetedKeywordType

string

Specifies the conquesting strategy used with the keyword.

Conquesting: Targets competitors’ branded keywords.

Branded: Targets the advertiser’s own branded keywords.

Generic: Targets neutral or non-branded keywords.

Unknown: Used for keyword/product pairs without a defined conquesting type (e.g. before conquesting was implemented).

mediaType

string

The type of creative asset used in the ad, such as Display or Video.

(*) Required
Field Definitions
  • 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.

Create an Account Level Report

Sample request

curl -X POST https://api.criteo.com/preview/retail-media/reports/accounts \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "type": "AsyncAccountsReportRequest",
      "attributes": {
        "accountIds": ["12345", "67890"],
        "reportType": "summary",
        "aggregationLevel": "campaign",
        "searchTermTypes": ["entered"],
        "searchTermTargetings": ["automatic"],
        "targetedKeywordTypes": ["generic"],
        "campaignType": "all",
        "salesChannel": "all",
        "mediaType": "all",
        "format": "json-compact",
        "clickAttributionWindow": "none",
        "viewAttributionWindow": "none",
        "dimensions": ["date", "accountId"],
        "metrics": ["impressions"],
        "startDate": "2025-10-10",
        "endDate": "2025-10-10",
        "timezone": "UTC"
      }
    }
  }'

Sample response

{
  "data": {
    "type": "RetailMediaReportStatus",
    "id": "f5a2cd3d-1e83-41b1-98b1-abcde1234567",
    "attributes": {
      "status": "pending",
      "rowCount": null,
      "fileSizeBytes": null,
      "md5Checksum": null,
      "createdAt": null,
      "expiresAt": null,
      "message": null
    }
  }
}

Responses

Response

Description

🔵200

Call executed with success

  • Report Type has been ignored* - Report Type has been ignored since Dimensions and Metrics has been provided. Please remove them if you want to use one of the templates.

When generating a report type using themetricsanddimensionsfilters for multi dimension reporting, a warning message will be presented in the200to inform thatreportTypeis ignored. This is because multi dimension takes priority in this scenario.

🔴400

Common Validation Errors

  • endDatecannot be more than 100 days fromstartDate
    • Using a date range with more than 100 days apart
  • reportTypeinvalid
    • calling an unsupported
    report typewill throw a 400 error
  • timeZonemust be a valid timezone
    • using a time zone value that is not listed in the list tz database time zones
  • format invalid
    • using an unsupported file format

🔴400

Validation Error

In the API, win rate metric will be available to sponsored product campaigns only. When using this metric, please specifycampaignTypeNamein the list of dimensions to obtain a value

“title”: ”WinRatemetric is only supported for Sponsored Products campaigns.”,

“detail”: “Please provide either thecampaignTypeNamein dimensions or filter onSponsoredProductsusing thecampaignTypefilter.”

🔴410

Expired or Lost Report Error

The report is expired, lost, or failed to create. Re-create the report through a new request.

What’s next