prospecting) and existing (retargeting) for URL parameters to provide more context to the ad impressions. More specifically, we allow you to configure three (3) values of the custom_audience_info field to enable the audience type URL parameters: audience_type_param_name, new_cusomter_tag, and existing_customer_tag.custom_audience_info field extends the /act_AD_ACCOUNT_ID node.| Name | Description |
|---|---|
custom_audience_info | Required. Values:Â audience_type_param_name and new_customer_tag or existing_customer_tagFor a successful POST call, the audience_type_param_name and either the new_customer_tag parameter or the existing_customer_tag parameter is required. |
custom_audience_info field| Name | Description |
|---|---|
audience_type_param_name
string
| Required. Value:Â audience_typeThe field name for the URL. Should be a non-empty string containing letters, numbers or underscores. |
new_customer_tag
string
| Optional. Value:Â prospectingThe field value for new customers. Should be a non-empty string containing letters, numbers or underscores. |
existing_customer_tag
string
| Optional. Value:Â retargetingThe field value for existing customers. Should be a non-empty string containing letters, numbers or underscores. |
curl -X GET -G \
-d 'fields=custom_audience_info' \
-d 'access_token=ACCESS_TOKEN' \
https://graph.facebook.com/v25.0/act_AD_ACCOUNT_ID
{
"custom_audience_info": {
"audience_type_param_name": "audience_type",
"new_customer_tag": "prospecting",
"existing_customer_tag": "retargeting"
},
"id": "act_AD_ACCOUNT_ID"
}
curl -i -X POST \
-H 'Content-Type: application/json' \
-d '{"custom_audience_info": {"audience_type_param_name": "audience_type", "new_customer_tag": "prospecting", "existing_customer_tag": "retargeting"}}' \
// Note: new_customer_tag and existing_customer_tag are both shown here for example only
-d 'access_token=ACCESS_TOKEN' \
https://graph.facebook.com/v25.0/act_AD_ACCOUNT_ID