![](https://secure.gravatar.com/avatar/094c8e75866557e85f8b8d5337d9ee15?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Conditionally enable/disable ads
Is there a way to conditionally enable and/or disable ads when embedding the player? I'm looking to build a service where the user can buy a subscription to disable ads. Thanks!
Is there a way to conditionally enable and/or disable ads when embedding the player? I'm looking to build a service where the user can buy a subscription to disable ads. Thanks!
The easiest way to do this would be to only add the advertising: {} block to your player when the viewer does not have your subscription.
You can either do this with two different cloud-hosted players configured as such in your account dashboard, or you can have a custom embed on the page that first checks to see if this is a “no ads” customer or not and then call the correct embed code via Javascript or your server-side code.