/v1/meta/ads
Listet Ads inklusive ihres (gecachten) effective_status. Für den frischen Live-Status einer einzelnen Ad siehe GET /v1/meta/status/{ad_id}.
Query-Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| adset_id | string (UUID) | optional | Auf ein Ad Set filtern. |
| status | enum | optional | ACTIVE | PAUSED | ARCHIVED. |
| limit | integer | optional | Anzahl pro Seite (Default 25, max 100). |
| offset | integer | optional | Versatz für Pagination (Default 0). |
Request · Next.js
const res = await fetch(`https://api.campaignkit.ventureon.io/v1/meta/ads`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.CAMPAIGNKIT_API_KEY}`,
},
});
const data = await res.json();Response 200
{
"data": [
{
"id": "9b2e1d77-4a3c-4e90-b1f2-8c7d6e5f4a3b",
"ad_set_id": "a51f…",
"creative_id": "1f0c…",
"name": "[CK] … · Ad #1",
"status": "ACTIVE",
"effective_status": "ACTIVE",
"disapproval_reason": null,
"meta_ad_id": "390218475610"
}
],
"request_id": "…"
}