Combining Paywall and Ads
There might be cases, when you want to disable or enable advertising in BotTalk Player dynamically.
For instance, in combination with the Paywall feature.
You might want some users to listen to advertising while others (subscribers) could enjoy an ad-free experience.
You can implement such behavior using special data attributes in the BotTalk Player code snippet.
To enable audio advertising for the user, include data-ads="true"attribute.
To disable audio advertising for the user, include data-ads="false" attribute.
For example, to enable advertising in the full article, use the following code:
<div id="bt-player"
data-code="YOUR-DATA-CODE"
data-premium="true"
data-ads="true">
</div>
<script src="https://bottalk.io/player/loader-v3.js"></script> Last updated