Google Ad Manager / Adsense and Prebid Integration

If your website only run Adsense

Put the following tag before your Google GAM/DFP tag and any other advertising tags:

<script type="text/javascript">
window.googletag = window.googletag || {};
window.googletag.cmd = window.googletag.cmd || [];
window.googletag.cmd.push(function() {

Remove any hard coded on your page and load it with the following CMP script:

<script type="text/javascript">
__tcfapi("addEventListener", 2, function(tcData, success) {
    if (success && tcData.unicLoad  === true) {
        if(!window._initAds) {
            window._initAds = true;
            var script = document.createElement('script');
            script.async = true;
            script.setAttribute('data-ad-client', 'ca-pub-xxxxxxxx');
            script.src = '';

You can also manage Adsense with UnicScript by modifying the javascript tag from Google Adsense.

If your website is running prebid or other header bidding wrapper:

Your ad-stack should be integrated correctly with an open-source prebid.js wrapper by default. If you are using a non-standard prebid wrapper, contact us to confirm your header bidding wrapper is supported.