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