Search Detailed Targeting
adsap_search_detailed_targetingSearch Meta detailed targeting the way Ads Manager's search box does: interests, behaviors AND demographics (job titles, employers, industries, education level, schools, fields of study, life events, parents, relationship status, income) in one query. Each result has a type: put the item under that key inside a targeting.flexible_spec group of adsap_create_ad_sets, e.g. {"family_statuses": [{"id": "6002714398372", "name": "Parents (All)"}]}. Unrelated filler Meta pads results with is removed. For housing, employment or financial campaigns pass special_ad_category: Meta then offers approved interests only. To size an audience before creating it, pass the same groups to adsap_get_delivery_estimate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | Keyword, e.g. "parents", "nurse", "yoga". | |
| ad_account_id | Yes | Ad account (act_ prefix). Required: Meta runs this search per ad account. | |
| special_ad_category | No | The campaign's Special Ad Category, if it has one. Omit for normal campaigns. |