With Advanced Ads Pro you can display or hide an ad based on the users’ capabilities. This is helpful, if you want to display different ads for different user groups like with BuddyPress or if logged-in users with a specific level should not be able to see an ad.

User capabilities are very good to fine-tune who should see ads across user roles. If you want to display ads based on user roles (e.g., administrator, author) then just use the User Role visitor condition.

You don’t have to make any changes in order to display an ad to every user. Only use this option if you want to limit it to some users.

To display an ad based on the URL, go to the Visitor conditions metabox and add the user can condition.

user-can visitor condition

Once you added the condition you can choose the capability a user must have in order to (not) see the ad.

Be aware that the capabilities are only checked for logged-in users. Visitors that are not logged-in don’t have capabilities (in terms of WordPress).

You find a list of the default capabilities in WordPress on Roles and Capabilities. Some plugins add new capabilities, others allow you to change the existing ones.

Example: display ads to authors, contributors, and subscribers only

user-can edit-pages capability