List ad groups
list_ad_groupsList one marketplace's enabled and paused ad groups, with their campaign and default bid (in the marketplace's currency). Pass campaign_id for one campaign's ad groups. Paginated like list_campaigns.
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": {
"marketplace_id": "<marketplace_id>"
},
"name": "list_ad_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Items per page, 1 to 1000. Defaults to 100. | |
| cursor | No | The `next_cursor` of the previous page, to read the next one. Treat it as opaque. | |
| states | No | Keep only these states: ENABLED, PAUSED. Archived ones are never listed. | |
| ad_products | No | Keep only these ad types: SPONSORED_PRODUCTS, SPONSORED_BRANDS, SPONSORED_DISPLAY. | |
| campaign_id | No | Keep only this campaign's ad groups: an `id` from list_campaigns. | |
| marketplace_id | Yes | The marketplace: an `id` from list_marketplaces. |