Anastasiia Bohutska
Anastasiia Bohutska

Reputation: 11

How I can receive ad account/campaign/ad set/ad history from Facebook Marketing API?

How I can receive ad account/campaign/ad set/ad history from Facebook Marketing API? For example, I can see history in Ads manager on campaign level View charts-History. How can I receive it from API?

Upvotes: 0

Views: 807

Answers (1)

Matteo
Matteo

Reputation: 39370

The Activities endpoint should be good for you. This should works with several edge (AdAccounts, AdSet,...). As example, for an AdAccounts:

act_XXX/activities&fields=object_id,object_name,event_type,event_time

See the docs:

https://developers.facebook.com/docs/marketing-api/reference/ad-activity https://developers.facebook.com/docs/graph-api/reference/v3.3/user/activities https://developers.facebook.com/docs/graph-api/reference/application/activities/

hope this help

Upvotes: 1

Related Questions