# Get ad account

> One ad account with its status, spend, and spending limit.

Canonical: <https://www.tryadeli.com/docs/api/ads/get-ad-account>

`GET https://app.tryadeli.com/api/v1/ads/accounts/{adAccountId}`

Authorization: `Bearer <API key>` — see [Authentication](https://www.tryadeli.com/docs/authentication)

The account as listed, plus `details`: `accountStatus`, `disableReason`,
`amountSpent` and `spendCap` in whole currency units (`spendCap` is `null` when
there is none), and `hasPaymentMethod` — `null` when Meta withholds it, which it
does unless the person has the MANAGE task on the account. Always read live.

**Path parameters**

| Name          | Type     | Required | Description                                     |
| ------------- | -------- | -------- | ----------------------------------------------- |
| `adAccountId` | `string` | Yes      | An ad account id, in Meta's act\_<digits> form. |

## Request examples

**cURL**

```bash
curl --fail-with-body "https://app.tryadeli.com/api/v1/ads/accounts/act_1234567890?accountId=00000000-0000-0000-0000-000000000000" \
  -H "Authorization: Bearer $ADELI_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://app.tryadeli.com/api/v1/ads/accounts/act_1234567890?accountId=00000000-0000-0000-0000-000000000000", {
  headers: {
    Authorization: `Bearer ${process.env.ADELI_API_KEY}`,
  },
});
console.log(await response.json());
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://app.tryadeli.com/api/v1/ads/accounts/act_1234567890",
    headers={"Authorization": f"Bearer {os.environ['ADELI_API_KEY']}"},
    params={
        "accountId": "00000000-0000-0000-0000-000000000000",
    },
)
print(response.json())
```

## Responses

### 200

```json
{
  "platform": "facebook",
  "accountId": "00000000-0000-0000-0000-000000000000",
  "profileId": "00000000-0000-4000-8000-000000000002",
  "adAccount": {
    "id": "act_1234567890",
    "accountId": "1234567890",
    "name": "Client A — Ads",
    "currency": "USD",
    "timezoneName": "America/New_York",
    "accountStatus": 1,
    "minDailyBudget": 100,
    "businessId": "1122334455",
    "businessName": "Client A"
  },
  "details": {
    "id": "act_1234567890",
    "currency": "USD",
    "accountStatus": 1,
    "disableReason": 0,
    "spendCap": 500,
    "amountSpent": 182.4,
    "hasPaymentMethod": true
  }
}
```

### 404

```json
{
  "error": {
    "code": "account_not_found",
    "message": "Ad account is not available to this connection"
  }
}
```
