search_ads
Search the Meta Ad Library by keyword to retrieve advertiser names, ad copy, and optional EU reach data. Returns paginated results for up to 50+ ads.
Instructions
Search the Meta Ad Library by keyword — returns the advertiser + description for each ad (supports loading 50+). Fast by default.
Args: keyword: free-text query (e.g. "dental implants"). country: ISO-2 country code (e.g. "DE", "AE"); use an EU country to find ads with EU-reach data. "ALL" = no country filter. limit: max ads to return (paginates by scrolling; 50 is fine). fetch_reach: if True, also clicks each result in one warm session to add eu_total_reach + breakdown (slower: ~3-4s/ad; use for ≤50). Returns: {keyword, country, count, ads:[{library_id, page_name, status, body_text, cta, link_url, start_date, end_date, versions, eu_total_reach?, uk_total_reach?, reach_breakdown?}]}. Ads not delivered in the EU have eu_total_reach=null (Meta's design). For a single ad's reach later, use get_ad_details(keyword, library_id, country).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | ||
| country | No | ALL | |
| limit | No | ||
| fetch_reach | No |