How to find out which app is providing adverts (without reverting to process of elimination)
I'm pretty sure that your keyboard is cause of ads showing (I guess this isn't stock one, is it?) try finding settings of that keyboard and see if there is option to turn off ads (I guess there isn't but still worth of try) however if you don't find option to turn off ads than simply uninstall some reliable keyboard (G BOARD and such)