account | DynamicAccount | Yes | - | Select the X Ads account whose campaigns should be listed. |
campaign_ids | string or array of string | No | - | Scope to specific campaign IDs (list or comma-separated string, up to 200). |
funding_instrument_ids | string or array of string | No | - | Scope to campaigns under specific funding instrument IDs (list or comma-separated string, up to 200). |
q | string | No | - | Scope campaigns by name (case-insensitive prefix match, so it matches names that start with this text). |
sort_by | string | No | - | Sort by a supported attribute, e.g. ‘created_at-desc’ or ‘updated_at-asc’. |
with_drafts | boolean | No | False | Include draft campaigns. |
with_deleted | boolean | No | False | Include deleted campaigns. |
filters | array of FilterItem | No | - | Additional filters applied to the returned campaigns. The available fields to filter by are: - id: Filter by campaign ID - name: Filter by campaign name - entity_status: Filter by status (ACTIVE, PAUSED, DRAFT) Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP_MATCH or IN_LIST. |
limit | integer | No | 100 | Maximum number of campaigns to return. Default: 100. |