Facebook Ads Scraper avatar
Facebook Ads Scraper
Try for free

Pay $5.00 for 1,000 Campaigns

View all Actors
Facebook Ads Scraper

Facebook Ads Scraper

apify/facebook-ads-scraper
Try for free

Pay $5.00 for 1,000 Campaigns

Extract advertising data from one or multiple Facebook Pages. Get page details, reach estimates, publisher platforms, report count, number of impressions, ad IDs, timestamps, and more. Download Facebook ads data in JSON, CSV, and Excel and use it in apps, spreadsheets, and reports.

Do you want to learn more about this Actor?

Get a demo
VL

Not scraping ads targeted to EU?

Closed

validated opened this issue
3 months ago

As the title indicates, I suspect the scraper is having issues scraping ads that are specifically targeted to the EU (and are thus subject to ads transparency mandates). To be clear, this is a hypothesis, but I'm not 100% certain it is the case.

Here's what I'm experiencing. When searching for ads for Fotor (https://facebook.com/fotorapp) using the FB ad library, it returns ~74 results, the majority of which denote "EU transparency". This is the query in the ad library UI: https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=US&view_all_page_id=265860730168745&sort_data[direction]=desc&sort_data[mode]=relevancy_monthly_grouped&search_type=page&media_type=all

If I do the same query via ad scraper, I consistently only get back two ads (neither of which have ad ids that are found in the UI), not the ~74 I'm expecting. This disparity between ads returned in UI vs scraper seems to manifest for many advertisers who advertise heavily in the EU.

Screenshot of the UI and link to scraper run attached.

alexey avatar

Hi! Thanks for feedback!

When page URL provided actor will compose search query from it, however its different from query you used to illustrate 74 ads per sample page. We can not really consider changes to the way how current search works because other users rely on it, so as a solution please use direct FB Ads URL like https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=US&view_all_page_id=265860730168745&sort_data%5Bdirection%5D=desc&sort_data%5Bmode%5D=relevancy_monthly_grouped&search_type=page&media_type=all in sample run https://console.apify.com/view/runs/WQXoleo0rwVJXa1Er - getting 100 results, also please note that native FB Ads counter is "around" so "around 74 ads" means it might be more (or less) than that.

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

ZE

zeantsoi

3 months ago

Can you help me understand why the search results are different from when I enter “fotorapp” into the Facebook ads library UI versus when I pass https://facrbook.com/fotorapp as the search URL to the scraper? What does the scraper search for that results in different records?

alexey avatar

Hi!

Search pattern is https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&view_all_page_id=265860730168745&search_type=page&media_type=all so for your page there is really no active ads (zero results). In your example you getting all ads no matter of active status

ZE

zeantsoi

3 months ago

Would you consider adding a flag to the input? Something like:

{ "startUrls": [ { "url": "https://www.facebook.com/SHEINOFFICIAL" } ], "scrollsAmount": 4, "activeOnly": true}

This would enable existing users to retain backwards compatibility while adding much needed functionality

alexey avatar

Hi! Thanks for suggestion, will think about it.

alexey avatar

Hi!

Finally found time to add proper support: active status can be specified by URL or dropdown option, URL considered as higher priority for compatibility reasons. See sample run https://console.apify.com/view/runs/3IDnuMhu7kXbKGOl2

Please give it a try!

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

Developer
Maintained by Apify
Actor metrics
  • 302 monthly users
  • 40 stars
  • 100.0% runs succeeded
  • 5 days response time
  • Created in Apr 2023
  • Modified 1 day ago