How to get data about Mobile mediation
To get a Mobile mediation report, use the Statistics report operation, passing the stat_type=mm
parameter as the report type.
Request:
curl -vg -H "Authorization: OAuth $TOKEN" \ GET 'https://partner2.yandex.ru/api/statistics2/get.json? \ &stat_type=mm \ &lang=ru \ &pretty=1 \ &dimension_field=date|day \ &entity_field=application_id \ &field=hits_mm \ &field=impressions_mm \ &field=revenue_mm \ &period=2021-07-10&period=2021-07-13 \ &filter=[\"AND\",[[\"application_id\",\"=\",123]]] \ &limits={\"limit\":50,\"offset\":0} \ &order_by=[{\"field\":\"hits_mm\",\"dir\":\"desc\"},{\"field\":\"date\",\"dir\":\"asc\"}]" | jq .