Adverts are only shown if the server classifies a game as over. Reasons for this could be that a player loses connection, leaves the game, is blocked and can’t make any move or the game was won regularly. The text that is shown in the game summary afterwards gives you an idea of what happened.