47 $service = Configurator::getService();
48 $service->setClientId($this->
getOption(
'clientId'));
51 $response = Configurator::searchTargetingData(
52 AdCampaignFacebook::TYPE_CODE,
55 'type' => static::SEARCH_TYPE
61 foreach($response as $value)
63 if(!isset($value[
'name']))
68 $topic = htmlspecialcharsbx($value[
'topic']);
69 $title = $value[
'name']. ($topic ?
" ({$topic})" :
"");
74 'entityId' => static::ENTITY_TYPE,
76 'customData' => [
'audienceSize' => $value[
'audience_size']],
78 'bgColor' =>
"#{$this->stringToColor($title)}",