Tag ad optimization for publishers