All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
Since you can block what you do not want to show with your application, and you can filter the ads that are displayed in it; and can delete the ads that are not permissible, such as ads for alcohol, gambling, and immorality, and you only miss what is not intended by the ads, and which is difficult to avoid, and most of the ads that are displayed in your application are permissible and free from what is forbidden, then it is permissible to deal with the site that you mentioned and earn from the displayed ads.
However, you must delete the evils that are associated with these ads if you can, such as evils exposing the ‘Awrah, even if it is for promoting a product such as a telephone, or a watch and so forth.
Allah knows best.