Skip to main content
GET
Get ad details

Request contract

  • Method and path: GET /apis/v1/ads/{adId}
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/ads/{adId}
  • adId: path; required
  • connectionId: query; required
  • live: 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.

Path Parameters

adId
string
required

See description for details.

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]+$
live
boolean
default:false

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

Response

Ad details

ad
object
cachedAt
string<date-time> | null

Google RSA details cache timestamp.

darkPost
object

Only when {adId} is a Facebook ad dark post with no resolvable ad (then ad is null).

stale
boolean

Whether Google RSA details use the last successful cached response.

statusReadAt
string<date-time> | null

With live=true, when the switches were read from the platform; null when the live read failed and the stored values were returned. Always set on an unsynced Meta ad read with connectionId, the time of that read.