Giuliano Iacobelli
Giuliano Iacobelli

Reputation: 1010

Filtering Facebook GET act_id/customaudiences results

I can't find a way to filter Custom audiences. From the documentation it looks like is only possible to retrieve a list for a given actId and I can apply fields query param like this:

// Retrieve blank audience
curl \
-F "access_token=______" \
-F "fields=type,name,anyotherproperty" \
"https://graph.facebook.com/act_XXXXXXX/customaudiences"

What I need is a way to retrieve only the custom audiences with subtype='CUSTOM' and with creation_source.type='file'

Can anybody help me with this? Thanks

Upvotes: 3

Views: 378

Answers (1)

Igy
Igy

Reputation: 43816

There is no server-side filtering available on the /<AD_ACCOUNT>/customaudiences endpoint - you'll need to cache and filter the response in your own app's code

Upvotes: 4

Related Questions