Implement search query ad parsing.