18 $service = Configurator::getService();
19 $service->setClientId($this->
getOption(
'clientId'));
22 $response = Configurator::searchTargetingData(
23 AdCampaignFacebook::TYPE_CODE,
26 'type' => static::SEARCH_TYPE
32 foreach ($response as $value)
34 if (!isset($value[
'key']))
42 'id' => $value[
'key'],
43 'entityId' => static::ENTITY_TYPE,
44 'title' => $value[
'name'],
46 'bgColor' =>
"#{$this->stringToColor($value['key'])}",
50 'type' => $value[
'type'],