get_adsets
Retrieve ad sets for a Meta Ads account, with optional filtering by campaign, using specified account ID and access token. Limits the number of results for targeted analysis.
Instructions
Get ad sets for a Meta Ads account with optional filtering by campaign.
Args:
access_token: Meta API access token (optional - will use cached token if not provided)
account_id: Meta Ads account ID (format: act_XXXXXXXXX)
limit: Maximum number of ad sets to return (default: 10)
campaign_id: Optional campaign ID to filter by
Input Schema
Name | Required | Description | Default |
---|---|---|---|
access_token | No | ||
account_id | No | ||
campaign_id | No | ||
limit | No |
Input Schema (JSON Schema)
{
"properties": {
"access_token": {
"default": null,
"title": "Access Token",
"type": "string"
},
"account_id": {
"default": null,
"title": "Account Id",
"type": "string"
},
"campaign_id": {
"default": "",
"title": "Campaign Id",
"type": "string"
},
"limit": {
"default": 10,
"title": "Limit",
"type": "integer"
}
},
"title": "get_adsetsArguments",
"type": "object"
}