Search Ads by Name
search_ads_by_namesSearch for ads by name in the Metadata platform library, with pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based page index (default: 0). Page numbering starts at 0. | |
| size | No | Results per page (default: 25, recommended max: 25). Larger windows blow LLM token budgets — only request more when the caller actually needs it. | |
| sort | No | Spring sort clause, e.g. 'createdDate,desc' (default), 'id,desc', or 'name,asc'. | |
| status | No | Which status bucket to return. 'active' (default) is the prior active-only behaviour. 'archived' returns ONLY archived (soft-deleted) ads, which is what you need to find an ad's id for unarchive_ad. 'all' returns both active and archived in one response. Maps to the platform's status query param semantics (Set<Boolean>): active=true, archived=false, all=omit. | active |
| ad_names | Yes | Array of ad names or partial names to search for (case-insensitive, partial matching) |