---
title: "Get Ad Groups"
method: GET
path: "/api/v1/campaigns/{campaign_id}/ad-groups"
tags: ["Campaigns"]
---

# Get Ad Groups

`GET /api/v1/campaigns/{campaign_id}/ad-groups`

## Request

- Base URL: `https://api.adrex.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.adrex.ai/api/v1/campaigns/{campaign_id}/ad-groups`
- Auth: HTTP bearer

Get ad groups (Google) or ad sets (Meta) for a campaign.

Supports two modes:
1. Local DB lookup: Pass local campaign_id (integer)
2. Direct platform lookup: Pass platform campaign_id + platform + account_id

## Path parameters

- `campaign_id` string, required

## Query parameters

- `platform` string, nullable: Platform: 'google' or 'meta'
- `account_id` string, nullable: Account ID for direct platform lookup
- `include_metrics` boolean: Include performance metrics

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/adrex/apis/adrex-ai.md) · [All operations](https://skmtc.dev/adrex/apis/adrex-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/adrex/apis/adrex-ai/revisions/4e6f0f0bc902?raw)
