# Examples

### Google AdSense

{% tabs %}
{% tab title="Tag before conditioning" %}
```markup
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
```
{% endtab %}
{% endtabs %}

becomes:

{% tabs %}
{% tab title="Tag modified with conditioning" %}
```markup
<script
    data-cmp-src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
    data-cmp-vendor="755"
    data-cmp-purposes="1,3,4"
    data-cmp-purposes-li="2,7,9,10">
</script>
```
{% endtab %}
{% endtabs %}

###

### Google Ad Manager&#x20;

Conditioning Google Ad Manager with Limited Ads as fallback

{% tabs %}
{% tab title="Tag before conditioning" %}
```markup
<script src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
```
{% endtab %}
{% endtabs %}

becomes:

{% tabs %}
{% tab title="Tag modified with conditioning and Limited Ads as fallback" %}
```markup
<script
    data-cmp-src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"
    data-cmp-vendor="755"
    data-cmp-purposes="1,3,4"
    data-cmp-purposes-li="2,7,9,10"
    data-cmp-fallback-src="https://pagead2.googlesyndication.com/tag/js/gpt.js"
    data-cmp-fallback-vendor="755"
    data-cmp-fallback-purposes-li="2,7,9,10">
</script>
```
{% endtab %}
{% endtabs %}

## Other examples

### Example 1&#x20;

Conditioning of a script for the partner 53 requiring consent for the purposes 1 and 3

```markup
<script data-cmp-src="https://www.example.com/script.js"
       data-cmp-vendor="53"
       data-cmp-purposes="1,3">
</script>
```

###

### Example 2

Conditioning of a script for the partner 81 requiring consent for the purpose 1 and the legitimate interest established for the purpose 6

```markup
<script data-cmp-src="https://www.example.com/script.js"
       data-cmp-vendor="81"
       data-cmp-purposes="1"
       data-cmp-purposes-li="6">
</script>
```

###

### Example 3&#x20;

Conditioning of a pixel for the partner 29 requiring consent for the purposes 1 and 9

```markup
<img data-cmp-src="https://www.example.com/pixel.png"
       data-cmp-vendor="29"
       data-cmp-purposes="1,9"
       width="1" height="1"/>
```



### Example 4

Conditioning of a script requiring consent for the purpose 1 with loading of an alternative script in case of non-consent

```markup
<script data-cmp-src="https://www.example.com/script.js"
       data-cmp-fallback-src="https://www.example.com/script_noconsent.js">
</script>
```
