How to get data for DSP partners

To get a report for DSP partners, use the Statistics report operation, passing the stat_type=dsp parameter as the report type.

Request:

curl -vg -H "Authorization: OAuth $TOKEN" \
GET 'https://partner2.yandex.ru/api/statistics2/get.json? \
&stat_type=dsp \
&lang=ru \
&pretty=1 \
&dimension_field=date|day \
&entity_field=dsp_id \
&field=shows \
&period=2021-07-10&period=2021-07-13 \
&filter=[\"AND\",[[\"dsp_id\",\"=\",2563049]]] \
&limits={\"limit\":50,\"offset\":0} \
&order_by=[{\"field\":\"shows\",\"dir\":\"desc\"},{\"field\":\"date\",\"dir\":\"asc\"}]" | jq .