v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
Ad Targeting

Search targeting options

Resolve a human-readable query into the platform's opaque targeting ids used in the TargetingSpec (countries/regions/cities/zips/metros geo keys, and interests/behaviors entity ids) on POST /v1/ads/create, POST /v1/ads/targeting/reach-estimate, and saved_targeting audiences.

The dimension param selects what is searched, geo (locations, further scoped by geoType), interest, behavior, or income. Availability of each dimension varies by platform (e.g. behaviours are Meta/TikTok only). Results are normalized across platforms into a single shape, so the same client code consumes Meta, TikTok, LinkedIn, X, Pinterest, and Google results.

TikTok geo searches return every matching level in one list (type is country, region, city, district, or metro for DMA areas) — geoType is not applied. Results are scoped to the advertiser's targetable markets, and every id is usable in regions/cities/metros keys on POST /v1/ads/create.

For geo queries, q should contain only the locality name (e.g. "Amsterdam", not "Amsterdam, NL"). Use countryCode to disambiguate.

get/v1/ads/targeting/search

Query parameters

accountIdstring required

Social account ID (a connected account on the target ad platform).

qstring required

Search query. For geo, the locality name only (no region/country suffix).

dimension'geo' | 'interest' | 'behavior' | 'income'

What to search. geo resolves locations (scope further with geoType), interest/behavior resolve audience entities, income resolves income-tier options. Defaults to interest for backward compatibility with the deprecated /v1/ads/interests alias.

geoType'country' | 'region' | 'city' | 'zip' | 'metro'

Only used when dimension=geo. The kind of location to resolve. Defaults to city.

countryCodestring

ISO 3166-1 alpha-2 country code (e.g. NL) to scope a geo search.

limitinteger

Maximum results to return.

Response

Matching targeting options (normalized)