/** * Sends request for banner stats. * * @param array $params Stats query params. * * @return array * @throws YandexDirectException * @throws \Bitrix\Main\SystemException * * @see https://tech.yandex.ru/direct/doc/dg-v4/live/GetBannersStat-docpage/ */ public function getBannerStats(array $params) { $result = $this->query(static::METHOD_STAT_BANNER, $params); $result = YandexJson::decode($result->getResult()); if (!empty($result['error_code'])) { throw new YandexDirectException($result); } return $result["data"]; }
public function getForecastReportList() { $result = $this->query(static::METHOD_FORECAST_REPORT_LIST); $result = YandexJson::decode($result->getResult()); return $result["data"]; }