API

Retrieve aggregated ad performance data

Retrieves impressions, clicks, spend, and the bookings and gift card sales the company's ads produced, over a date window, optionally narrowed to one campaign or ad.

GET/v1/hq/companies/{company_id}/aggregate/ad_performance

Authorization

BearerTokenAuth

AuthorizationBearer <token>

The Noona HQ API uses Bearer token for authentication.

Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.

Authorization: Bearer your-token

In: header

Path Parameters

company_id*string

Company ID

Query Parameters

filter*
select?array<string>
expand?array<string>

Response Body

application/json

curl -X GET "https://api.noona.is/v1/hq/companies/string/aggregate/ad_performance?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&campaign_id=string&ad_id=string&granularity=day"
{
  "from": "2019-08-24T14:15:22Z",
  "to": "2019-08-24T14:15:22Z",
  "totals": {
    "impressions": {
      "current": 0,
      "previous_period": 0,
      "percent_change": 0
    },
    "clicks": {
      "current": 0,
      "previous_period": 0,
      "percent_change": 0
    },
    "bookings": {
      "current": 0,
      "previous_period": 0,
      "percent_change": 0
    },
    "vouchers_sold": {
      "current": 0,
      "previous_period": 0,
      "percent_change": 0
    },
    "spend": {
      "current": {
        "amount": 10000,
        "currency": "ISK"
      },
      "previous_period": {
        "amount": 10000,
        "currency": "ISK"
      },
      "percent_change": 0
    }
  },
  "campaigns": [
    {
      "ad_campaign": "string",
      "name": "string",
      "impressions": 0,
      "clicks": 0,
      "bookings": 0,
      "vouchers_sold": 0,
      "spend": {
        "amount": 10000,
        "currency": "ISK"
      }
    }
  ],
  "series": [
    {
      "bucket_at": "2019-08-24T14:15:22Z",
      "impressions": 0,
      "clicks": 0,
      "bookings": 0,
      "vouchers_sold": 0,
      "spend": {
        "amount": 10000,
        "currency": "ISK"
      }
    }
  ]
}
Empty
Empty
Empty
Empty
Empty