ghl_ad_fb_targeting_search
Search Facebook ad targeting options to build ad set audiences, including geolocations, interests, behaviors, demographics, and languages. Use a query and targeting type to retrieve matching audience criteria.
Instructions
Search targeting options
Search Facebook targeting options for ad set audience building. type selects which taxonomy is searched and determines the response shape: geolocation returns places, interest returns interests, behaviours, and demographics, and language returns locales. Geolocation and interest results are passed through from Facebook, so their fields are snake_case.
Endpoint: GET /ad-publishing/facebook/targeting/search (Version header: v3; source: v3/ad-publishing-v3.json)
OAuth scopes: adPublishing.readonly
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": {
"type": "<type>",
"query": "<query>"
},
"name": "ghl_ad_fb_targeting_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Targeting search type | |
| query | Yes | Search query string | |
| locationId | No | Location identifier | |
| searchType | No | Specific search subtype |