EU law - CMP and advertising plugin

Hello

In the EU to be GDPR compliant we shouldn’t load ads or track data until the user has first accepted permission.

We are looking at using the Quantcast CMP and Im wondering how I could stop ads loading until something is first set in the page?

Quantcast give this example

window.getGooglePersonalization = function( callbackFunction ){
var getGooglePersonalizationFn = function (callbackFunction ){
    window.__cmp( 'getGooglePersonalization', function(consent, isSuccess){
        if (callbackFunction ){
            if ( !isSuccess ){
                callbackFunction( false );
            } else if( consent.googlePersonalizationData.consentValue ){
                callbackFunction( true );
            } else {
                callbackFunction( false );
            }
        }
    });
}
window.__cmp('setConsentUiCallback', function () {
    getGooglePersonalizationFn(callbackFunction);
});

}

getGooglePersonalization(function (useGooglePersonalization) {
    window.loadAds({
        usePersonalizedAds: useGooglePersonalization
    });
});

Is there a way I could tell the Ad Plugin not to automatically load the ads then trigger it manually?

1 Like