Skip to main content
POST
/
preview
/
reports
/
realtime
/preview/reports/realtime
curl --request POST \
  --url https://api.criteo.com/preview/reports/realtime \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "type": "GenerateRealtimeStatisticsReport",
    "attributes": {
      "advertiserIds": [
        "123",
        "456"
      ],
      "campaignIds": [
        "111"
      ],
      "adsetIds": [
        "135"
      ],
      "dimensions": [
        "AdvertiserId",
        "Advertiser",
        "CampaignId",
        "Campaign",
        "AdsetId",
        "Adset",
        "Day",
        "Hour"
      ],
      "metrics": [
        "Displays",
        "Clicks",
        "Cost"
      ],
      "lookbackWindow": 12,
      "currency": "EUR",
      "timezone": "Europe/Paris"
    }
  }
}
'
{
  "data": [
    {
      "attributes": {
        "rows": [
          {}
        ]
      },
      "type": "<string>"
    }
  ],
  "errors": [
    {
      "code": "<string>",
      "detail": "<string>",
      "instance": "<string>",
      "source": {},
      "stackTrace": "<string>",
      "title": "<string>",
      "traceId": "<string>",
      "traceIdentifier": "<string>"
    }
  ],
  "warnings": [
    {
      "code": "<string>",
      "detail": "<string>",
      "instance": "<string>",
      "source": {},
      "stackTrace": "<string>",
      "title": "<string>",
      "traceId": "<string>",
      "traceIdentifier": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

A top-level object that encapsulates a Criteo API request for a single value object.

data
object

A value resource exposed by the API.

Response

Success

A top-level object that encapsulates a Criteo API response for several value objects.

data
object[] | null
errors
object[] | null
read-only

Errors that occured during this call.

warnings
object[] | null
read-only

Warnings that occured during this call.