Skip to main content
GET
Get campaign analytics

Request contract

  • Method and path: GET /apis/v1/ads/campaigns/{campaignId}/analytics
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/ads/campaigns/{campaignId}/analytics
  • campaignId: path; required
  • connectionId: query; required
  • platform: query; optional
  • fromDate: query; optional
  • toDate: query; optional
  • breakdowns: 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

campaignId
string
required

Platform campaign id (platformCampaignId).

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]+$
platform
string

Disambiguate when the campaign id exists across platforms (e.g. facebook, instagram).

fromDate
string<date>

Start of date range (YYYY-MM-DD). Defaults to 90 days ago.

toDate
string<date>

End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.

breakdowns
string

Comma-separated breakdown dimensions. Meta: age, gender, country, publisher_platform, device_platform, region, platform_position, impression_device, video_asset, image_asset, body_asset, title_asset.

Response

Campaign analytics

analytics
object
backfillPending
boolean

Meta only. Present and true while historical data is being backfilled.

campaign
object