Political parties might choose their election ads but increasingly it’s tech companies’ algorithms that decide who sees them.