Native Ads

Analytics reports

Analytics reports contain selected Native or Content Display analytics data and report instances are generated automatically at the start of every day, week or month. Reports are created and managed in Advisible Console. Follow the instructions below to fetch report instances via an API request, for example to integrate data from Advisible with external systems.

Endpoint

Substitute the following values in the URLs below.

ValueDescription
[ACCOUNT_ID]ID of the Advisible account that owns the report.
[REPORT_ID]ID of the report.
[DATE]The start date of the report instance in the format YYYY-MM-DD.

Native

GET https://api.native.advisible.com/external/v1/analytics_reports/[ACCOUNT_ID]/[REPORT_ID]/[DATE]

Content Display

GET https://api.content-display.advisible.com/external/v1/analytics_reports/[ACCOUNT_ID]/[REPORT_ID]/[DATE]

Authorization

An authorization token is required, which should be provided via the Authorization HTTP header. Create a new app token in Advisible Console and substitute [TOKEN] below.

Authorization: Bearer [TOKEN]

Response

Response body type
type AnalyticsReportResponse = Array<Record<string, string | number>>

The response consists of an array of objects with keys and values matching the analytics fields specified when creating the report. Empty array is returned if no report instance exists for the requested date. Note that some delay is expected from the end of a report period until the instance is generated and ready to be fetched.

Example response
[{
    "dimension1": "My campaign",
    "dimension1Id": "1d7a7f98-771e-4439-a225-28f17ba9775c",
    "teaserRender": 200,
    "articleDirectRender": 100
}]