# 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:

```html
  <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>                                   
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bottalk.io/docs/monetization/combining-paywall-and-ads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
