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
BM

Changing schema is making database writes fail.

Closed

beneficial_mess opened this issue
3 months ago

Hi, I'm logging this actor's output to a database table with fixed schema that represents the top-level output schema of the actor's json.

The recent apparent addition of a new top-level field (finServAdData) has caused writes to my db to fail. The actor version is still the same, so locking the version doesn't seem like it will work.

How can I ensure a fixed output schema for a given actor version and thus avoid DB errors?

alexey avatar

Hi! Actor forwarding data "as is" from internal Facebook format so data changes as with finServAdData is reproduction of current live Facebook data. We need to follow such approach to prevent data loss and keep output relevant to what currently seen in Ad Library.

So in case if you need fixed format please consider actor integration with https://apify.com/lukaskrivka/dedup-datasets or by some other tool

You can also ask community in Apify Discord #hire-freelancers to build a simple integration script for this.

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