How to only display Adsense ads for logged out users in wordpress?
The easiest way to implement ads on a WordPress website is to use the plugin Site Kit By Google. In this plugin, there is an easy setup of Adsense intergration. Here you just log in to your AdSense account in the plugin and then enable auto ads, then ads will start displaying if your site is approved to show ads.
Go to site kit -> Settings – > Adsense -> click Edit
Then enable exclude from ads all logged-in users.
That’s it this is the easiest way to do it.