• Resolved thijmede

    (@thijmede)


    Hi there,

    I think I installed my cmp correctly now but I still see one adsbygoogle in my page source which is this one:

    <script>
    (function () {
    var scriptDone = false;
    document.addEventListener(‘advanced_ads_privacy’, function (event) {
    if (
    (event.detail.state !== ‘accepted’ && event.detail.state !== ‘not_needed’ && !advads.privacy.is_adsense_npa_enabled())
    || scriptDone
    ) {
    return;
    }
    // google adsense script can only be added once.
    scriptDone = true;

    var script = document.createElement(‘script’),
    first = document.getElementsByTagName(‘script’)[0];

    script.async = true;
    script.src = ‘https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&#8217;;
    script.dataset.adClient = “ca-pub-xxxxxxxxxx”;
    first.parentNode.insertBefore(script, first);
    });
    })();
    </script>

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi thijmede,

    thanks for reaching out.

    This code is part of our TCF integration. It checks if consent was given, and if so, delivers the Auto ads code in the correct format. This code is not executed without valid consent.

    Please let me know if you need anything else.

    Best regards,
    Thomas

Viewing 1 replies (of 1 total)
  • The topic ‘adsbygoogle | CMP’ is closed to new replies.