D2C is a mobile marketing and advertising company in Japan. We are now developing the original Natural Language Processing (NLP) engine and Text mining system for a mobile advertising based on the Apache Spark, Scala, Play2, which are planed to be launched in April of 2015. In search advertising, it is important and also difficult to select the appropriate keywords for ads. Therefore we are studying how to estimate appropriate keywords for each ad from search query logs. For these issues, we use several text-mining algorithms via Apache Spark and Scala. We will show you the results about these themes