Ads · Ad Accounts
Reads an ad account's campaigns and ad sets live. Works with Meta Ads and TikTok Ads.
https://api.pozy.ai/v1/ads/accounts/liveRequest
Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the ads resource group disabled get 403 resource_group_disabled. Authentication
Query parameters
| Name | Type | Notes |
|---|---|---|
accountIdrequired | string | |
adAccountIdrequired | string | |
status | string | |
level | string | One of campaign, adSet |
limit | integer | Default 2001 to 500 |
after | string |
Example
curl -X GET "https://api.pozy.ai/v1/ads/accounts/live?accountId=696e0b682d0a31188e7a2ba9&adAccountId=666219aad7bab67ace411e4f&limit=200" \
-H "Authorization: Bearer $POZY_API_KEY"const res = await fetch("https://api.pozy.ai/v1/ads/accounts/live?accountId=696e0b682d0a31188e7a2ba9&adAccountId=666219aad7bab67ace411e4f&limit=200", {
headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);import os
import requests
resp = requests.get(
"https://api.pozy.ai/v1/ads/accounts/live",
headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
params={
"accountId": "696e0b682d0a31188e7a2ba9",
"adAccountId": "666219aad7bab67ace411e4f",
"limit": 200,
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())Response
200 on success
accountIdstringadAccountIdstringplatformstringOne of
facebook,tiktok.currencystringreadAtstring (date-time)campaignsarray of object12 child fields
platformCampaignIdstringcampaignNamestringCan be null.
platformCampaignStatusstringCan be null.
configuredStatusstringCan be null.
statusstringbudgetobjectCan be null.
2 child fields
amountnumbertypestringOne of
daily,lifetime.
dailyBudgetnumberCan be null.
lifetimeBudgetnumberCan be null.
budgetModestringCan be null.
budgetRemainingnumberCan be null.
spendCapnumberCan be null.
bidStrategystringCan be null.
adSetsarray of object19 child fields
platformAdSetIdstringadSetNamestringCan be null.
platformCampaignIdstringCan be null.
platformAdSetStatusstringCan be null.
configuredStatusstringCan be null.
statusstringbudgetobjectCan be null.
2 child fields
amountnumbertypestringOne of
daily,lifetime.
dailyBudgetnumberCan be null.
lifetimeBudgetnumberCan be null.
budgetModestringCan be null.
budgetRemainingnumberCan be null.
bidStrategystringCan be null.
bidAmountnumberCan be null.
optimizationGoalstringCan be null.
billingEventstringCan be null.
promotedObjectobjectCan be null.
targetingobjectCan be null.
scheduleobjectCan be null.
2 child fields
startDatestring (date-time)endDatestring (date-time)
adSchedulearray of objectOne of:
Meta Ad Schedule (4 fields)
dayOfWeekstringrequiredOne of
MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY.startHourintegerrequired0 to 23.
endHourintegerrequired1 to 24.
timezoneTypestringOne of
USER,ADVERTISER. DefaultUSER.
pagingobjectcampaignsobject1 child field
afterstringCan be null.
adSetsobject1 child field
afterstringCan be null.
{
"accountId": "696e0b682d0a31188e7a2ba9",
"adAccountId": "666219aad7bab67ace411e4f",
"platform": "facebook",
"currency": "USD",
"readAt": "2026-10-02T09:00:00.000Z",
"campaigns": [
{
"platformCampaignId": "68f1e8569b986839e821d8ba",
"campaignName": "Acme",
"platformCampaignStatus": "instagram",
"configuredStatus": "active",
"status": "active",
"budget": {
"amount": 12.5,
"type": "daily"
},
"dailyBudget": 12.5,
"lifetimeBudget": 12.5,
"budgetMode": "string",
"budgetRemaining": 12.5,
"spendCap": 12.5,
"bidStrategy": "string"
}
],
"adSets": [
{
"platformAdSetId": "6749c05fd96acf71ce38cbc7",
"adSetName": "Acme",
"platformCampaignId": "68f1e8569b986839e821d8ba",
"platformAdSetStatus": "instagram",
"configuredStatus": "active",
"status": "active",
"budget": {
"amount": 12.5,
"type": "daily"
},
"dailyBudget": 12.5,
"lifetimeBudget": 12.5,
"budgetMode": "string",
"budgetRemaining": 12.5,
"bidStrategy": "string",
"bidAmount": 12.5,
"optimizationGoal": "string",
"billingEvent": "string",
"promotedObject": {},
"targeting": {},
"schedule": {
"startDate": "2026-10-02T09:00:00.000Z",
"endDate": "2026-10-02T09:00:00.000Z"
},
"adSchedule": [
{
"dayOfWeek": "MONDAY",
"startHour": 1,
"endHour": 1,
"timezoneType": "USER"
}
]
}
],
"paging": {
"campaigns": {
"after": "string"
},
"adSets": {
"after": "string"
}
}
}Errors
Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:
| 400 | invalid_request_error | A parameter or body field is missing or invalid. param names it. |
| 401 | authentication_error | The API key is missing, revoked or expired. |
| 403 | permission_error | The key is scoped to other profiles or has this resource group disabled. |
| 429 | rate_limit_error | Too many requests this minute. Wait for Retry-After seconds. |
Every code is listed in Errors.