User segmentation is one the most important problems in online advertiting. The use of online latent Dirichlet allocation model for analysing big datasets for this purpose is proposed in this paper. The relationship between the number of segments and segmentation quality metrics is analized and criteria for assigning ads to user segments are proposed.