use specification in get Advertisement and replcae multiple methods with one