跳转到主要内容
GET
Connect an ad platform

请求规范

  • 方法与路径: GET /apis/v1/ads/connect/{platform}
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/ads/connect/{platform}
  • platform: path; 必填
  • profileId: query; 可选
  • redirectUrl: query; 可选
  • socialAccountId: query; 可选
  • adAccountIds: query; 可选
  • force: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

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

授权

Authorization
string
header
必填

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

路径参数

platform
string
必填

查询参数

profileId
string

Your social profile (prf_...); the default profile when omitted.

redirectUrl
string<uri>

Where the browser goes when the flow ends; it must be on your redirect allowlist.

socialAccountId
string

One of your social accounts (acc_...) on the profile. Required for X; on Meta, LinkedIn and Pinterest it picks the login the ads authorization reuses.

adAccountIds
string

Comma-separated platform ad account IDs to limit the connection to.

force
boolean

Always start a new authorization.

响应

Success

alreadyConnected
boolean | null
authUrl
string | null
connectSessionId
string | null
connection
object | null
expiresAt
string<date-time> | null