• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/retargeting/audience.php
  • Класс: BitrixSeoRetargetingAudience
  • Вызов: Audience::addContacts
public function addContacts($audienceId, array $contacts, array $options)
{
	$contacts = $this->normalizeContacts($contacts);
	if ($this->isQueueModeEnabled())
	{
		$this->addToQueue($audienceId, $contacts, $options, false);
		if ($this->emptyResponse === null)
		{
			$this->emptyResponse = Response::create(static::TYPE_CODE);
			$this->emptyResponse->setData(array());
		}

		return $this->emptyResponse;
	}
	else
	{
		return $this->importContacts($audienceId, $contacts, $options);
	}
}