/v1/meta/adsets
Listet Ad Sets, optional nach Ziel (target) und Status gefiltert. Die Antwort enthält das Ziel (target) statt einer Kampagnen-ID.
Query-Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| campaign_id | string (UUID) | optional | Auf eine Kampagne filtern. |
| target | string | optional | Auf eine von uns eingerichtete Ziel-Kampagne (Ziel-Schlüssel) 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/adsets`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.CAMPAIGNKIT_API_KEY}`,
},
});
const data = await res.json();Response 200
{
"data": [
{
"id": "a51f9c33-7e2b-4d18-8a0e-6b9c1d4f2e77",
"campaign_id": "c7d2e9a1-5b3f-4c88-9e10-2a4b6c8d0e1f",
"target": null,
"name": "[CK] … · AdSet #1",
"daily_budget_cents": 5000,
"status": "ACTIVE",
"effective_status": "ACTIVE",
"meta_adset_id": "604839271650"
}
],
"request_id": "…"
}