• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/bitrixseo.php
  • Класс: CBitrixSeoOAuthInterface
  • Вызов: CBitrixSeoOAuthInterface::addBanner
public function addBanner($engine, array $bannerParam)
{
	if($this->getAppID() && $this->getAppSecret() && $engine)
	{
		$res = $this->getTransport()->call(
			CBitrixSeoTransport::METHOD_BANNER_ADD,
			array(
				"engine" => $engine,
				"banner" => $bannerParam
			)
		);

		if(!isset($res['error']))
		{
			return $res['result'];
		}
		else
		{
			return $res;
		}
	}

	return false;
}