Build an Ad Library URL
ad_library_urlConvert search filters into a public Meta Ad Library URL so you can open the same search in a browser, verify results, and distinguish no results from blocked searches.
Instructions
Turn a set of filters into the public Ad Library URL, so a person can open the same search in a browser and check the results independently. Useful when a search comes back empty and you need to tell 'no results' apart from 'blocked'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ad_library_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Keyword to search for. | |
| country | No | Two-letter country code. Default US. | |
| page_id | No | Advertiser Page ID, instead of a keyword. | |
| media_type | No | ||
| active_status | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |