跳转到主要内容
GET
Search targeting options

请求规范

  • 方法与路径: GET /apis/v1/ads/targeting/search
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/ads/targeting/search
  • connectionId: query; 必填
  • q: query; 必填
  • dimension: query; 可选
  • geoType: query; 可选
  • countryCode: query; 可选
  • adAccountId: query; 可选
  • locale: query; 可选
  • limit: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。 广告投放费用由广告平台向已连接的广告账户另行收取。

授权

Authorization
string
header
必填

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

查询参数

connectionId
string
必填

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
必填

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>
默认值: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).

可用选项:
geo,
interest,
interestSuggestion,
interestKeyword,
behavior,
hashtag,
income,
language,
workPosition,
workEmployer,
workIndustry,
industry,
jobFunction,
seniority,
companySize,
skill,
community,
conversationKeyword
geoType
enum<string>
默认值:city

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

可用选项:
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
默认值:25

Maximum results to return.

必填范围: 1 <= x <= 100

响应

Matching targeting options (normalized)

results
object[]