跳转到主要内容
GET
List ad sets

请求规范

  • 方法与路径: GET /apis/v1/ads/ad-sets
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/ads/ad-sets
  • connectionId: query; 必填
  • adAccountId: query; 可选
  • campaignId: query; 可选
  • adSetId: query; 可选
  • platform: query; 可选
  • status: query; 可选
  • page: query; 可选
  • limit: query; 可选
  • live: 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]+$
adAccountId
string

Platform ad account id (Meta act_). Lists every synced ad set of that ad account; no campaignId needed.

campaignId
string

Platform campaign ID Must be yours: it is checked through the connection before the request is sent, and an id that is not yours answers not_found.

adSetId
string

Platform ad set ID Must be yours: it is checked through the connection before the request is sent, and an id that is not yours answers not_found.

platform
enum<string>
可用选项:
facebook,
instagram,
tiktok,
linkedin,
pinterest,
google,
twitter,
openai,
reddit,
meta,
x
status
enum<string>

Filter by the ad set's stored status, the value each row returns. A live read does not change it. Rows whose status is null match no filter.

可用选项:
active,
paused,
pending_review,
rejected,
completed,
cancelled,
error
page
integer
默认值:1
必填范围: x >= 1
limit
integer
默认值:500
必填范围: 1 <= x <= 500
live
boolean
默认值:false

Read the on/off switches live from the platform instead of returning synced values. See "Status freshness" in the operation description.

响应

Ad sets

adSets
object[]
pagination
object