search_ad_library
Search Meta's Ad Library by keywords, countries, and ad types to analyze competitor ads and ensure ad transparency.
Instructions
Search the Meta Ad Library for ads. Allows searching by keywords, countries, and ad type. Useful for competitive research and transparency.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"search_terms": "<search_terms>",
"ad_reached_countries": "<ad_reached_countries>"
},
"name": "search_ad_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Pagination cursor for next page | |
| limit | No | Number of results (default 25) | |
| fields | No | Comma-separated fields to return | |
| ad_type | No | Ad type filter: ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, etc. | |
| order_by | No | Sort order for results | |
| search_terms | Yes | Keywords to search for in ads | |
| ad_reached_countries | Yes | Comma-separated country codes where ads were shown (e.g. 'US,GB,KR') |