ads_targeting_search
Look up targeting options on the ad network and get the ids to use in targeting: interests, behaviors, languages, and location keys (the key of a region or city on Meta, a numeric location id on Google). Returns { data: [{ id, name, type, path, audience_size_lower, audience_size_upper, country_code, region, region_id }], next_page_token, cached }. Meta supports every type; Google only location and language.
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>"
},
"name": "ads_targeting_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search text. Optional for behavior, income, industry (lists all) and for location with location_type=region. | |
| type | Yes | What to search. For interest_suggestion, q is an interest name to get related ones. | |
| limit | No | Default 25, max 100 | |
| region_id | No | Region id, to narrow a location search | |
| profile_id | No | Ads profile hashid (the profile_id of an ad account in ads_accounts_list). Optional when exactly one ads profile is connected; required when several are. | |
| country_code | No | ISO country code, to narrow a location search | |
| location_type | No | Narrow a location search. Google supports country, region, city, zip, metro. | |
| profile_group_id | No | Profile group hashid, to scope the call to one profile group. Usually not needed. |