List ChatGPT Ads ad groups
list-openai-ads-ad-groupsList the ad groups in one ChatGPT Ads campaign. Returns a page {data, has_more, last_id}; each ad group has id, name, status, bidding_config and serving_issues. campaign_id comes from list-openai-ads-campaigns. get-openai-ads-ad-group reads one; get-openai-ads-ad-group-insights gives its metrics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain_id": "<domain_id>",
"campaign_id": "<campaign_id>"
},
"name": "list-openai-ads-ad-groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | last_id of the previous page | |
| limit | No | Page size | |
| order | No | Sort by creation time: desc (newest first) or asc | |
| before | No | first_id of the current page | |
| domain_id | Yes | Domain ID from list-domains | |
| campaign_id | Yes | Campaign ID from list-openai-ads-campaigns |