Skip to content

Campaign filter

CampaignFilter #

CampaignFilter(campaign_ids: list[str])

Bases: RapidataFilter

CampaignFilter Class

Can be used to filter who to target based on campaign IDs.

This filter can only be used when directly in contact with Rapidata.

Parameters:

Name Type Description Default
campaign_ids list[str]

List of campaign IDs to filter by.

required
Source code in src/rapidata/rapidata_client/filter/campaign_filter.py
def __init__(self, campaign_ids: list[str]):
    self.campaign_ids = campaign_ids