3namespace Bitrix\Seo\LeadAds;
5use Bitrix\Main\Context;
7use Bitrix\Seo\Retargeting\BaseApiObject;
8use Bitrix\Seo\Retargeting\Response;
10use Bitrix\Seo\Retargeting;
38 parent::__construct();
117 abstract public function unlink(
string $id): bool;
130 $rows = Internals\CallbackSubscriptionTable::getList([
131 'select' => [
'GROUP_ID'],
133 '=TYPE' => static::TYPE_CODE,
137 return array_column(
$rows,
'GROUP_ID');
152 $row = Internals\CallbackSubscriptionTable::getRow([
154 '=TYPE' => static::TYPE_CODE,
155 '=GROUP_ID' => $groupId
159 return $row && Internals\CallbackSubscriptionTable::delete($row[
'ID'])->isSuccess();
174 $list = Internals\CallbackSubscriptionTable::getList([
176 '=TYPE' => static::TYPE_CODE
179 foreach ($list as $row)
181 if ($row[
'GROUP_ID'] === $groupId)
187 Internals\CallbackSubscriptionTable::delete($row[
'ID']);
194 $callbackSubscriptionResult = Internals\CallbackSubscriptionTable::add([
195 'TYPE' => static::TYPE_CODE,
196 'GROUP_ID' => $groupId
199 return $callbackSubscriptionResult->isSuccess();
210 foreach ($item = $field->
toArray() as
$key => $value)
230 static function($field)
232 return static::convertField($field);
245 return static::URL_FORM_LIST;
250 return new \Bitrix\Main\Result();
270 switch ($langId = Context::getCurrent()->getLanguage())
276 return "https://www.bitrix24.{$langId}/about/privacy.php";
278 return "https://www.bitrix24.{$langId}/privacy/";
281 return 'https://www.bitrix24.com/privacy/';
290 )->register($parameters);
323 return static::USE_GROUP_AUTH;
338 if (!self::isGroupAuthUsed())
345 $row = Internals\CallbackSubscriptionTable::getRow([
347 '=TYPE' => static::TYPE_CODE,
351 if ($row && $row[
'HAS_AUTH'] !==
'Y' && $adapter->hasAuth())
353 Internals\CallbackSubscriptionTable::update($row[
'ID'], [
'HAS_AUTH' =>
'Y']);
static getEngineCode($type)
static create($type, IService $service=null, bool $ignoreType=false)
static registerForm($formId)
static unregisterForm($formId)
static create($type, $externalId)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(empty($signedUserToken)) $key