add queries condition to ads