Title: Custom Attributes
Last modified: December 1, 2022

---

# Custom Attributes

 *  Resolved [agm7](https://wordpress.org/support/users/angelgallegos/)
 * (@angelgallegos)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/custom-attributes-13/)
 * Hello,
 * How can we add custom attributes to ad units, placements or codes?
 * I specifically want to hide some ads for premium users using Outseta software:
   [https://go.outseta.com/support/kb/articles/exme0BWV/how-to-show-or-hide-page-elements-from-authenticated-users](https://go.outseta.com/support/kb/articles/exme0BWV/how-to-show-or-hide-page-elements-from-authenticated-users)
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/custom-attributes-13/#post-16259386)
 * Hi agm7,
 * I already replied this afternoon, but it must have gotten lost somehow.
 * However, I looked at the page you linked and first admit that I have no experience
   with this Outseta.
 * There are several methods to insert code or specific attributes. It depends on
   your ad setup and the number of ads that need this customization, which way works
   the most time-saving for you.
 * The screenshot in the Outseta manual shows a page builder, but I can’t identify
   which one it is.
 * If you use the same page builder, integrate ads into the page using the Advanced
   Ads element or via shortcode with a standard HTML element/widget/item. Then you
   could add the specific attribute as described in the manual.
 * If you don’t use this page builder, you’ll have to add the attribute differently.
   For this, it would be helpful to see what precisely this attribute should look
   like in the page’s source code.
 * Then you can decide whether to add this code to specific placements (each placement
   has a fixed ID) or to individual ads. For single ads, it could work with the 
   [custom code function](https://wpadvancedads.com/how-to-add-custom-code-in-css-and-html-to-your-ads/).
 * But maybe it’s even easier to hide certain ads from premium users. That depends
   on how those permissions are stored in Outseta. Because with [Advanced Ads Pro](https://wpadvancedads.com/advanced-ads-pro/),
   you can target ads to user roles via the “User Role” visitor condition without
   adding extra code to individual ads or placements.
 * Best regards,
    Joachim

Viewing 1 replies (of 1 total)

The topic ‘Custom Attributes’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/custom-attributes-13/#post-16259386)
 * Status: resolved