Facebook Marketing
Facebook custom audiences
Last updated
Was this helpful?
Was this helpful?
curl -X POST \
-D '{
"name": "My new Custom Audience 1",
"subtype": "CUSTOM",
"description": "People who purchased on my website",
"customer_file_source": "USER_PROVIDED_ONLY"
}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {{ token }}' \
https://graph.facebook.com/v12.0/act_{{ my ad account id }}/customaudiencescurl -X POST \
-D '{
"payload": {
"schema": [ "MADID" ],
"data": [
[
"{{ my mobile device id }}"
],
[
"{{ my mobile device id }}"
]
]
},
"session": {
"session_id": "{{ some session id }}",
"batch_seq": 1,
"last_batch_flag": true,
"estimated_num_total": 2
}}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {{ token }}' \
https://graph.facebook.com/v12.0/{{ my audience id }}/users