# meta_search_targeting

> Find Meta detailed targeting IDs for targeting.flexible_spec: interests by name (mode interests, Graph search type=adinterest), interests, behaviours…

[Documentation](https://www.getmcpads.com/docs) / [Sources](https://www.getmcpads.com/docs/sources) / [Meta Ads](https://www.getmcpads.com/docs/sources/meta-ads)

Find Meta detailed targeting IDs for targeting.flexible_spec: interests by name (mode interests, Graph search type=adinterest), interests, behaviours and demographics by name (mode detailed, the ad account targeting search), every option of one category (mode browse: behaviors, demographics, life_events, industries, income, family_statuses, interests), suggestions next to known interests (mode suggestions), or whether interest IDs still exist (mode validate). Each row gives id, name, targetingField (the flexible_spec key it goes under), path, audience size bounds and description. Use only IDs returned here; Meta retires options over time. Read-only.

|  |  |
| --- | --- |
| Source | [Meta Ads](https://www.getmcpads.com/docs/sources/meta-ads) |
| Kind | Read |
| Discovery | Reachable through `search_tools` and `run_tool` |
| Account parameter | `adAccountId` |
| Endpoint | https://mcp.getmcpads.com/meta-ads/mcp |

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `adAccountId` | string | Required | Owning advertising account ID. Use the exact ID returned by account discovery; do not substitute a campaign or business ID. |
| `mode` | string | Required | interests and detailed search queries; browse lists a category; suggestions and validate take interests. One of: `interests`, `detailed`, `browse`, `suggestions`, `validate`. |
| `queries` | array | Optional | interests and detailed: names to search (running shoes, frequent travelers, parents), one search each. |
| `category` | string | Optional | browse only: the targeting category to list. One of: `behaviors`, `demographics`, `life_events`, `industries`, `income`, `family_statuses`, `interests`. |
| `interests` | array | Optional | suggestions: interest names; validate: interest IDs (digits) or names. |
| `locale` | string | Optional | Language of the names returned, as fr_FR or en_US. |
| `limit` | integer | Optional | Rows per search, 25 by default. |

## Calling it

Through run_tool, since it is not announced

```json
{
  "name": "run_tool",
  "arguments": {
    "name": "meta_search_targeting",
    "args": {
      "adAccountId": "<string>",
      "mode": "interests"
    }
  }
}
```

- [Meta Ads metrics](https://www.getmcpads.com/docs/sources/meta-ads/metrics): What you can ask for.
- [Meta Ads dimensions](https://www.getmcpads.com/docs/sources/meta-ads/dimensions): How you can break it down.

---

This page as HTML: https://www.getmcpads.com/docs/sources/meta-ads/tools/meta_search_targeting
Every page under /docs is available as Markdown: append `.md`, or send `Accept: text/markdown`.
