- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/seo/ads/messagelookalikeyandex.php
- Класс: Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeYandex
- Вызов: MessageLookalikeYandex::setConfigurationOptions
protected function setConfigurationOptions()
{
$this->configuration->setArrayOptions([
[
'type' => 'title',
'code' => 'AUDIENCE_NAME',
'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_AUDIENCE_TITLE'),
'required' => true,
],
[
'type' => 'string',
'code' => 'AUDIENCE_LOOKALIKE',
'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_ACCOUNT_ID'),
'required' => true,
],
[
'type' => 'string',
'code' => 'CLIENT_ID',
'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_CLIENT_ID'),
'required' => true,
],
[
'type' => 'string',
'code' => 'ACCOUNT_ID',
'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_ACCOUNT_ID'),
'required' => false,
],
[
'type' => 'string',
'code' => 'AUDIENCE_ID',
'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_AUDIENCE_ID'),
'required' => true,
],
[
'type' => 'bool',
'code' => 'DEVICE_DISTRIBUTION',
'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_DEVICE_DISTRIBUTION'),
'required' => false,
],
[
'type' => 'bool',
'code' => 'GEO_DISTRIBUTION',
'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_GEO_DISTRIBUTION'),
'required' => false,
],
]);
}