facebookresearch / Ad-Library-API-Script-Repository

GitHub repository of commonly used python scripts that allows everyone to pull data via the Ad Library API
Other
213 stars 84 forks source link

Filter by "before-date"? #30

Open alex-a-wu opened 1 year ago

alex-a-wu commented 1 year ago

I was wondering if it's possible to filter by "before-date" in addition to the "after-date"? The description here seems to suggest that one could use "ad_delivery_date_max", but I wasn't sure how to do it.

shaynak commented 1 year ago

Hi! Currently, the CLI does not support before-date / the ad_delivery_date_max parameters, but we're working on updating the CLI to include all current API fields & parameters!

For now, you can filter the data you receive after making a query by looking at the ad_delivery_stop_time and ad_delivery_start_time fields.