Targeting automation scripts to select campaigns