Number of days to retain someone in audience. Between 1 and 180 days
prefill
Boolean
Optional
Optional. Default is true. Available options are: true: Include website activity recorded before audience creation. false: Only include website traffic from the time of audience creation.
{
"name" : "My new CA",
"subtype" : "CUSTOM",
"description" : "People who bought from my website",
"customer_file_source" : "USER_PROVIDED_ONLY"
}
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/facebook/custom-audience?name=ft-4&connection_name=fbads-01&adaccount_id=act_1217648562383717' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
"name" : "My new CA",
"subtype" : "CUSTOM",
"description" : "People who bought from my website",
"customer_file_source" : "USER_PROVIDED_ONLY"
}'
var axios = require('axios');
var data = JSON.stringify({
"name": "My new CA",
"subtype": "CUSTOM",
"description": "People who bought from my website",
"customer_file_source": "USER_PROVIDED_ONLY"
});
var config = {
method: 'post',
url: 'https://us-central1-appgregator.cloudfunctions.net/facebook/custom-audience?name=ft-4&connection_name=fbads-01&adaccount_id=act_1217648562383717',
headers: {
'x-api-key': 'U2Fsd...',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});