Reputation: 23
I am upgrading the api calls for an application that we use inhouse so that it is compliant with the changes starting April 9th. I am looking at the following call for adinterestsuggestion and want to know if the syntax is correct. Because it is returning empty dataset and I am not sure what is wrong. I am trying this on the Facebook Graph Api explorer.
https://graph.facebook.com/search?type=adinterestsuggestion&interest_list=["soda","water"]&limit=&access_token=xyz I truly appreciate any feedback.
Thanks
Upvotes: 2
Views: 1222
Reputation: 43816
The API is case sensitive which means your sample call doesn't work because there's no Interest called 'soda' or 'water' when I search the Interest list
There is however one called 'Soda' and one called 'Water' - the interest_list
parameter you provide needs to match known Interests, which you already know exist from ads you've run before, or from the adinterest
search type
This returns results for me:
/search?type=adinterestsuggestion&interest_list=['Soda','Water']
"data": [
{
"id": 6003677833118,
"name": "Knorr (brand)",
"audience_size": 11707059,
"path": [
],
"description": null
},
{
"id": 6003115633342,
"name": "Deodorant",
"audience_size": 16299816,
"path": [
],
"description": null
},
...
Upvotes: 3