This provided data is the same as in the Real Time dashboard in CGrowth.
Making a call
Real Time Statistics report is available at the following endpoint: The following request returns data based on the selectedattributes similarly to the other reporting endpoints.
Example of body for the POST call:
Report Request attributes
Below is all possible attributes you may use for the request:Field | Required | Type | Default Value | Description |
|---|---|---|---|---|
| Yes |
| Id(s) of the account(s). | |
| Optional |
|
| Id(s) of the campaigns to filter. |
| Optional |
|
| Id(s) of the adset(s) to filter. |
| Optional |
|
| Number of hours going back the query should apply to (from 12 to 24). |
| Optional |
|
| Timezone used for dates. Must exist in theTime Zone DB. |
| Optional |
|
| Currency in which the results are shown. |
| Optional |
|
| Dimensions of the report. |
| Optional |
|
| Metrics of the report. |
Response Codes
The following response codes may be returned by the API:400: Bad request, invalid syntax or validation error. Review the request to make sure the format is valid.401: Authentication failed. Ensure the authentication header is formatted properly and your access token hasn’t expired.403: No campaign found. Verify your campaign IDs are correct.429: Throttling failure. Wait a minute to try again - there is a limit of 200 requests per minute.500: Unknown error.
Validation Errors
Below is a list of error codes for the Real Time Statistics endpoint and a more detailed description of their meaning. General guidance on handling API errors can be found here.insufficient-account-permissions
You do not have the rights to generate a report on these accounts.
invalid
There are different types of errors, depending on title:
- The
<field>field is required: Missing required field. - Time zone
<timezone>is not valid. See criteo developer portal for supported time zones.
Dimensions
Dimensions allow you to specify the aggregation level suited to your needs. There are no restrictions on the number of dimensions or the order of dimensions. The full list is below:Value | Description | Type |
|---|---|---|
| ID of the advertiser. |
|
| Name of the advertiser. |
|
| ID of the campaign. |
|
| Name of the campaign. |
|
| ID of the adset. |
|
| Name of the adset. |
|
| Year in datetime format |
|
| Month in datetime format |
|
| Week in datetime format |
|
| Day in datetime format |
|
| Hour in format |
|
Metrics
Value | Description | Type |
|---|---|---|
| Number of clicks the campaign has generated. |
|
| Total cost of the campaign for the client. |
|
| Number of times the campaign has been displayed. |
|