A nonprofit spent 6 figures on ads for Republican attorney g