0

Am using facebook marketing api to monitor ads insights on campaigns and i want to be notified on the updates of the statistics on my campaigns but i can't find how to use webhook with the marketing api data : campaigns, adsets and ads https://developers.facebook.com/docs/marketing-api.

sila
  • 179
  • 4
  • 14
  • You want FB to repeat every ad view as a request to your service? What? Do you imagine the amount of requests? – Nakilon Apr 10 '17 at 01:57
  • No i just want to be notified when a new campaign/adset or ad is created, for the statistics i use cron jobs. – sila Apr 10 '17 at 07:58
  • All entities are (can't find it in docs but it works in such way) sorted by updated_time so the most recent are on top. In that way you can just repeat the query stopping listing JSON-reponse pages when the last entity is old and known. – Nakilon Apr 10 '17 at 10:48
  • @Nakilon the entities are sorted by default or i should mention that in the request ?? – sila Apr 14 '17 at 10:57
  • It is by default. – Nakilon Apr 14 '17 at 11:43
  • Have a look at [**ricks**'s answer](https://stackoverflow.com/a/52938866/3679900) which points to [Ad Rules Engine](https://developers.facebook.com/docs/marketing-api/ad-rules) – y2k-shubham May 07 '20 at 06:13

0 Answers0