3namespace Bitrix\Seo\Retargeting;
6use Bitrix\Main\SystemException;
7use Bitrix\Seo\Retargeting\Internals\ServiceLogTable;
40 $this->type = static::TYPE_CODE;
54 $this->useDirectQuery = $mode;
64 return $this->adapter;
118 return $this->endpoint;
145 $this->client = $this->client ??
new AdsHttpClient([
'socketTimeout' => 5]);
146 $this->client->clearHeaders();
156 catch (\Exception $exception)
158 $response->addError(
new Error($exception->getMessage(), $exception->getCode()));
161 if (
$response->getErrorCollection()->count() > 0)
166 if (!
$error->getMessage())
171 ServiceLogTable::add(
array(
172 'GROUP_ID' =>
'retargeting',
173 'TYPE' => static::TYPE_CODE,
174 'CODE' =>
$error->getCode(),
175 'MESSAGE' =>
$error->getMessage()
static create($object, $type, $parameters=null)
send(array $params=array())
directQuery(array $params=array())
setAuthAdapter(AuthAdapter $adapter)
setClient(AdsHttpClient $client)
query(array $params=array())
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']