Answer the question
In order to leave comments, you need to log in
Getting a list of audiences by user ID?
Hello.
Faced a problem when working with facebook-php-ads-sdk
It is possible to get a list of Custom Audiences using this api:
public function getCustomAudiences(array $fields = array(), array $params = array(), $pending = false) {
$this->assureId();
$param_types = array(
'business_id' => 'string',
'fields' => 'list<fields_enum>',
'filtering' => 'list<Object>',
'pixel_id' => 'string',
);
$enums = array(
'fields_enum' => CustomAudienceFieldsValues::getInstance()->getValues(),
);
$request = new ApiRequest(
$this->api,
$this->data['id'],
RequestInterface::METHOD_GET,
'/customaudiences',
new CustomAudience(),
'EDGE',
CustomAudience::getFieldsEnum()->getValues(),
new TypeChecker($param_types, $enums)
);
$request->addParams($params);
$request->addFields($fields);
return $pending ? $request : $request->execute();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question