List targeting options
ads_list_targetingSearch or list targeting options for an ad account. Meta: interests or locations (search with q; locationTypes country, region, city, zip), behaviors, demographics or languages (q filters), for ads_create_meta_campaign targeting: a location's id is its key, a language's id its locale number, and demographics also need their type. TikTok: regions, languages or interests, for ads_create_tiktok_campaign. LinkedIn: locations (search with q), job_functions, seniorities, industries or company_sizes, for ads_create_linkedin_campaign; each id is the URN to target.
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": {
"adAccountId": "<adAccountId>",
"type": "<type>"
},
"name": "ads_list_targeting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Meta: search by name (required for interests and locations). LinkedIn: search locations or industries by name. | |
| goal | No | ||
| type | Yes | ||
| platform | No | meta_ads, tiktok_ads or linkedin_ads. Needed only when the profile has more than one ad network and no accountId is given. | |
| accountId | No | The Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection. | |
| profileId | No | A profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree. | |
| adAccountId | Yes | ||
| countryCode | No | Meta locations: limit to one country. | |
| locationTypes | No | Meta locations: comma-separated, e.g. city,zip. |