FWIW, on our site we serve ads only to guest users by checking the user id. On our “other than discourse” forum, all guests (not logged in) users have a userid of less than one, so it is easy to check and not serve ads to members (just the opposite of server only to registered users).
I have not yet looked at the official discourse ad plugin to see if this is a configuration option or possible with a simple code mod.