selecting ads through categories