search_ads_library
Search Meta's public Ad Library to find and analyze active and inactive ads by keywords or page IDs. Perform competitive research across countries, ad categories, and platforms with filters for delivery times and creative previews.
Instructions
Search Meta's public Ad Library for competitive research. Returns active and inactive ads matching search_terms OR search_page_ids in the selected countries. Default country = ['US']. Returns ad_snapshot_url (preview), creative bodies/titles, page_id, delivery times, publisher_platforms.
Note: only ads in categories subject to public transparency (political / housing / employment / credit) return full metadata; other categories return lighter data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search_terms | No | Keywords to search ad text/creative | |
| search_page_ids | No | Specific Facebook Page IDs to look at | |
| ad_reached_countries | No | ISO-2 country codes. Default ['US'] | |
| ad_type | No | Default ALL | |
| ad_active_status | No | Default ACTIVE | |
| publisher_platforms | No | ||
| limit | No | ||
| after | No | ||
| fields | No | Override default field list |