getAdDetails query method