get_campaigns function updated