Skip to main content
GET
Search targeting options

Request contract

  • Method and path: GET /apis/v1/ads/targeting/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/ads/targeting/search
  • connectionId: query; required
  • q: query; required
  • dimension: query; optional
  • geoType: query; optional
  • countryCode: query; optional
  • adAccountId: query; optional
  • locale: query; optional
  • limit: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation. Ad spend is billed separately by the ad platform to your connected ad account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

connectionId
string
required

The ads connection (adc_...) the request runs on: one of yours, from GET /apis/v1/ads/connections. On a request with a JSON body it may be sent as a top-level body member instead.

Pattern: ^adc_[0-9A-Za-z]+$
q
string
required

Search query. For geo, the locality name only (no region/country suffix). For interestSuggestion, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a q starting with [ is read as JSON).

dimension
enum<string>
default:interest

What to search. Defaults to interest for backward compatibility with the deprecated /apis/v1/ads/interests alias. geo: resolves locations (scope further with geoType).

Available options:
geo,
interest,
interestSuggestion,
interestKeyword,
behavior,
hashtag,
income,
language,
workPosition,
workEmployer,
workIndustry,
industry,
jobFunction,
seniority,
companySize,
skill,
community,
conversationKeyword
geoType
enum<string>
default:city

Only used when dimension=geo. The kind of location to resolve. all searches every type in one relevance-ranked call. Defaults to city.

Available options:
all,
country,
country_group,
region,
city,
subcity,
neighborhood,
place,
zip,
metro_area,
geo_market
countryCode
string

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

Required string length: 2
adAccountId
string

TikTok only: the advertiser to search as, when the connection holds several. Each TikTok advertiser has its own targetable regions and catalogs.

locale
string

Meta only (ignored on other platforms). The language Meta matches q against and names results and path in, as language_TERRITORY (e.g. pl_PL, en_US).

Pattern: ^[a-z]{2,3}_[A-Z]{2}$
limit
integer
default:25

Maximum results to return.

Required range: 1 <= x <= 100

Response

Matching targeting options (normalized)

results
object[]