Skip to main content
Lists ad groups in the connected OpenAI Ads account. Pass a campaign_id to scope to one campaign, or omit it to list ad groups across all campaigns. Returns raw ad group objects exactly as returned by the API. Optionally filter by status, sort by creation order, and limit results.

Inputs

SelectableOption

Output

Type: List[Dict] Returns a list of ad group objects exactly as returned by the OpenAI Ads API (id, name, status, bidding_config, description, product_set, created_at, updated_at), plus an injected campaign_id identifying the parent campaign. Fields: dynamic (depend on the inputs) Example: