I think that the streamer has some control over it. I was watching Meg Turney (I like to pop in sometimes, watch her play Dead By Daylight), and she just finishes a game (because it has happened multiple times) and then up comes an ad.
I just usually switch off the channel at that point...