0

I have an ad on Facebook and I want to know the number of people who viewed this ad and the number of people who have clicked on the ad. Is there a way possible for this to happen?

kirk
  • 232
  • 1
  • 2
  • 10

2 Answers2

0

https://developers.facebook.com/docs/reference/ads-api/adstatistics/

use this kind of link using api

https://graph.facebook.com/act_{ad_account_id}/stats

0

You have quite a few options at your disposal!

Ad Report Stats

The latest reporting functionality which has the most flexibility is the Ad Report Stats. This report can be run asynchronously to process large reports, and has the ability to to aggregation and filtering.

e.g.

https://graph.facebook.com/act_12345/reportstats?data_columns=['adgroup_id', 'actions']&actions_group_by=['action_type']&time_ranges=...

Would yield:

{
    'data': [
        { 
            adgroup_id: A, 
            time_start: B,
            time_stop: C,
            actions: [
                { action_type: 'post_like', value: 180 },
                { action_type: 'post_comment', value: 50 },     
            ]
        }
    ]
}

Conversion Stats

Conversion stats will give you a set of data aggregated by action type and attribution window.

https://graph.facebook.com/{adgroup_id}/conversions
Paul Bain
  • 4,364
  • 1
  • 16
  • 30