Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook webhook for Ads (Marketing API)

Is it possible to make a facebook webhook for event of approving the ad. When you create an ad, it's in pending review status that can take some undefined time. I need to call some actions right after the ad is approved.

There are facebook webhooks for apps/pages/users. But what about Ads?

like image 468
Larry Cinnabar Avatar asked Dec 18 '22 18:12

Larry Cinnabar


2 Answers

Actually @luschn, there are webhooks for certain Marketing API features.

Such as: https://developers.facebook.com/docs/marketing-api/guides/lead-ads/webhooks/v2.5

like image 186
Daniel Avatar answered Jan 08 '23 06:01

Daniel


There are no webhooks for Ads, webhooks only exist for Pages and Users. Here are all the possibilities: https://developers.facebook.com/docs/graph-api/webhooks

Edit:

My bad, there ARE webhooks for Ads: https://developers.facebook.com/docs/marketing-api/guides/lead-ads/retrieving#webhooks

like image 31
andyrandy Avatar answered Jan 08 '23 06:01

andyrandy