I am trying to create website custom audience using Facebook graph API. I have used the same rules data provided in their documentation, the audience created but the rule are not display there on Facebook Ads Manager side. It is displaying following error while trying to edit the audience.
This rule was created through API or third-party applications. It contains syntax that we currently don't support in our interface.
Following is the rule parameter value
{
"inclusions": {
"operator": "or",
"rules": [{
"event_sources": [
{
"id": "<PIXEL_ID>",
"type": "pixel"
}
],
"retention_seconds": 8400,
"filter": {
"operator": "and",
"filters": [{
"field": "url",
"operator": "i_contains",
"value": "shoes"
}]
}
}]
}
}
Following is the link of Facebook documentation
I got the solution for this. Sharing in case others are facing the same issue.
Syntax which I was using earlier.
} }
Correct Syntax