facebook-ad-library-scraper icon indicating copy to clipboard operation
facebook-ad-library-scraper copied to clipboard

KeyError: 'demographic_distribution'

Open minimaxir opened this issue 5 years ago • 2 comments

It appears Demographic distribution info is not included 100% of the time? Weird, but should catch that.

Only seems to happen when searching INACTIVE ads.

minimaxir avatar Nov 21 '19 17:11 minimaxir

@minimaxir a lot of inactivate ads are ones that have actually been flagged for targeting certain audiences/demographics, that might explain why the demographic distribution doesn't show. If your looking to scrape facebook ads data real time without the limitations I can help you out with the nonofficial way.

hamik112 avatar Dec 03 '19 07:12 hamik112

Thanks for the offer, but for kosherness this script needs to follow the official approach.

I'll take a look to see if it is a distribution flag.

minimaxir avatar Dec 03 '19 16:12 minimaxir