• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/engine/yandexdirect.php
  • Класс: BitrixSeoEngineYandexDirect
  • Вызов: YandexDirect::getBanners
public function getBanners($bannerId)
{
	if (empty($bannerId))
	{
		throw new ArgumentNullException("bannerId");
	}
	
	if (!is_array($bannerId))
	{
		$bannerId = array($bannerId);
	}
	
	$result = $this->getProxy()->getInterface()->getBannerList(static::ENGINE_ID, array(
		'BannerIDS' => $bannerId,
	));
	
	if (!empty($result['error']))
	{
		throw new YandexDirectException($result);
	}
	
	return $result;
}