You can create a plugin to override the layer. Assuming that you have you set up an advertisement for all users.
In the layer, you can first verify if the user is logged in. If the user is logged in, you can delete the block that shows ads.
If the user is not logged in, you do not do anything.