3namespace Bitrix\Seo\LeadAds;
5use Bitrix\Seo\BusinessSuite\IInternalService;
6use Bitrix\Seo\Retargeting\AuthAdapter;
7use Bitrix\Seo\Retargeting\IService;
39 ->setService(static::getInstance())
40 ->registerGroup($groupId);
66 ->setService(static::getInstance())
67 ->unRegisterGroup($groupId);
69 static::getInstance()->getGroupAuth(
$type)->removeAuth();
85 $adapters = $adapters ?? [];
86 if (!array_key_exists(
$type, $adapters))
88 $adapters[
$type] = AuthAdapter::create(
$type)->setService(static::getInstance());
91 return $adapters[
$type];
99 foreach (static::getTypes() as
$type)
101 if ($engineCode === static::getEngineCode(
$type))
118 static::TYPE_FACEBOOK,
119 static::TYPE_VKONTAKTE,
131 return static::GROUP .
'.' .
$type;
171 if (!array_key_exists(
$type, $this->forms))
176 return $this->forms[
$type];
188 if (!array_key_exists(
$type, $this->accounts))
193 return $this->accounts[
$type];
198 $authManager = static::getAuthAdapter(
$type);
199 return $authManager->getAuthUrl();
static getEngineCode($type)
static unRegisterGroup(string $type, string $groupId)
static registerGroup(string $type, string $groupId)
static getTypeByEngine(string $engineCode)
static canUseAsInternal()
getGroupAuth(string $type)
static create($type, $parameters=null, IService $service=null)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)