Leveraging automation for targeted ad buying