get_ad_accounts
Retrieve ad accounts accessible by a Meta user, specifying access token, user ID, and account limit, for managing advertising campaigns on Facebook and Instagram.
Instructions
Get ad accounts accessible by a user.
Args:
access_token: Meta API access token (optional - will use cached token if not provided)
user_id: Meta user ID or "me" for the current user
limit: Maximum number of accounts to return (default: 200)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
access_token | No | ||
limit | No | ||
user_id | No | me |
Input Schema (JSON Schema)
{
"properties": {
"access_token": {
"default": null,
"title": "Access Token",
"type": "string"
},
"limit": {
"default": 200,
"title": "Limit",
"type": "integer"
},
"user_id": {
"default": "me",
"title": "User Id",
"type": "string"
}
},
"title": "get_ad_accountsArguments",
"type": "object"
}