def METHOD_NAME(campaign_name: str) -> Campaign:
    campaign = Campaign.query.filter_by(name=campaign_name).first()
    if campaign is None:
        raise NotFound(sub_code="CAMPAIGN_NOT_FOUND", campaign_name=campaign_name)
    return campaign