Ejemplo n.º 1
0
 /**
  * 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"];
 }
Ejemplo n.º 2
0
	public function getForecastReportList()
	{
		$result = $this->query(static::METHOD_FORECAST_REPORT_LIST);
		$result = YandexJson::decode($result->getResult());

		return $result["data"];
	}