AdnovaDocs
Analytics

List ad accounts

Returns every analytics ad account under organizationId: the Meta and TikTok ad accounts connected to Adnova Analytics, merged into one list. Each row carries a platform field so you can tell them apart. Pass workspaceId to narrow the list to a single workspace. Omit it to get every ad account in the organization. Returns 403 if you are not a member of organizationId. Use adAccountId + platform from each row when calling the Analytics APIs.

GET
/ad_accounts

Authentication

authentication
api-key<token>

Create an API key from the Adnova dashboard (Account integrations). Pass the key value in the api-key request header on every call.

In: header

Query Parameters

organizationId*string

Organization to list ad accounts for. Get this from List organizations.

Length1 <= length
workspaceId?string

If set, only ad accounts linked to this workspace. Get this from List workspaces.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.adnova.ai/analytics/v1/ad_accounts?organizationId=string"
{
  "data": [
    {
      "id": "01H8Y4...",
      "adAccountId": "act_1234567890",
      "name": "Acme - US - Prospecting",
      "platform": "facebook",
      "workspaceId": "01H8Y3...",
      "organizationId": "01H8Y2..."
    }
  ]
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}