Download Report

Returns base64 encoded file content depending on the export format (xlsx, csv).

post
Authorizations
Body
start_datestring · dateRequired

example: 2017-07-21

end_datestring · dateRequired

example: 2017-07-21

include_mappingsnumber · enumOptional

0 - by default if one split_by field

1 - by default if more than one split_by field

Possible values:
timezonenumberOptional
filter_templatestringOptional

A string template defining priorities for filters specified in the filters POST argument. Can contain the following elements:

opening/closing parentheses

OR/AND operators

x character as placeholder for filters

Example: x OR (x AND x).

data_filter_templatestringOptional

A string template defining priorities for filters specified in the data_filters POST argument. Can contain the following elements:

opening/closing parentheses

OR/AND operators

x character as placeholder for filters

Example: x OR (x AND x).

export_formatstring · enumRequiredPossible values:
include_totalnumber · enumOptional

defines whether total values are included.

Possible values:

0 - total values are not included

1 - total values are included

Default value is 0

Possible values:
Responses
200

OK

text/plain
Responsestring

Base64 encoded file content.

post
POST /download-report HTTP/1.1
Host: api.reporting-studio.ads.sportradar.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 110

{
  "split_by": [
    "demand.advertiser_id"
  ],
  "start_date": "2021-05-20",
  "end_date": "2021-05-25",
  "export_format": "xlsx"
}
200

OK

text

Was this helpful?