How to add adsense auto ads code to topic only

How to add auto ads code to topic head only, and only visible to guest and trust level 0 users.