account | DynamicAccount | Yes | - | Select the Pinterest Ads account whose ad groups should be listed. |
campaign_ids | array of string (also accepts a comma-separated string) | No | - | Optional campaign IDs to list ad groups from, as a list or comma-separated text. |
ad_group_ids | array of string (also accepts a comma-separated string) | No | - | Optional ad group IDs to fetch, as a list or comma-separated text. |
entity_statuses | array of string or SelectableOption | No | - | Filter ad groups by status. Options: ACTIVE, PAUSED, ARCHIVED, DRAFT. Defaults to ACTIVE and PAUSED when omitted. |
translate_interests_to_names | boolean | No | False | When true, interest IDs inside each ad group’s targeting_spec are returned as human-readable names. Default false. |
filters | array of FilterItem | No | - | Additional filters to apply when retrieving ad groups. The available fields to filter by are: - id: Filter by ad group ID - name: Filter by ad group name - campaign_id: Filter by parent campaign ID 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 ad groups to return. Default: 100. |