125 if (!$this->configuration->hasOptions())
130 Entity\Message::create()
132 ->loadConfiguration($id, $this->configuration);
137 $this->configuration->setView(
143 Retargeting\Audience::ENUM_CONTACT_TYPE_EMAIL => $configuration->get(
'AUDIENCE_EMAIL_ID'),
144 Retargeting\Audience::ENUM_CONTACT_TYPE_PHONE => $configuration->get(
'AUDIENCE_PHONE_ID'),
149 $audienceId = $configuration->get(
'AUDIENCE_ID');
157 $audienceSize = $self->getConfigurationOptionValue(
$configuration,
'AUDIENCE_SIZE');
158 $audienceRegion = $self->getConfigurationOptionValue(
$configuration,
'AUDIENCE_REGION');
159 $autoRemoveDays = $self->getConfigurationOptionValue(
$configuration,
'AUTO_REMOVE_DAY_NUMBER');
160 $audienceLookalike = $self->getConfigurationOptionValue(
$configuration,
'AUDIENCE_LOOKALIKE');
161 $geoDistribution = $self->getConfigurationOptionValue(
$configuration,
'GEO_DISTRIBUTION');
162 $deviceDistribution = $self->getConfigurationOptionValue(
$configuration,
'DEVICE_DISTRIBUTION');
164 $audienceLookalikeMode = $provider[
'IS_SUPPORT_LOOKALIKE_AUDIENCE'] && ($this instanceof
iLookalikeAds);
166 $GLOBALS[
'APPLICATION']->IncludeComponent(
167 'bitrix:seo.ads.retargeting',
170 'INPUT_NAME_PREFIX' =>
'CONFIGURATION_',
171 'CONTAINER_NODE_ID' => $containerNodeId,
172 'PROVIDER' => $provider,
173 'ACCOUNT_ID' =>
$configuration->getOption(
'ACCOUNT_ID')->getValue(),
174 'CLIENT_ID' =>
$configuration->getOption(
'CLIENT_ID')->getValue(),
175 'AUDIENCE_ID' => $audienceId,
176 'AUDIENCE_SIZE' => $audienceSize,
177 'AUDIENCE_REGION' => $audienceRegion,
178 'AUDIENCE_LOOKALIKE_MODE' => $audienceLookalikeMode,
179 'AUTO_REMOVE_DAY_NUMBER' => $autoRemoveDays,
180 'AUDIENCE_LOOKALIKE' => $audienceLookalike,
181 'GEO_DISTRIBUTION' => $geoDistribution,
182 'DEVICE_DISTRIBUTION' => $deviceDistribution,
183 'JS_DESTROY_EVENT_NAME' =>
'',
184 'TITLE_NODE_SELECTOR' =>
'[data-role="letter-title"]',
185 'HAS_ACCESS' =>
true,
186 'MESSAGE_CODE' => $self::CODE,
190 $result = ob_get_clean();
191 $result .=
"<div id=\"$containerNodeId\"></div>";