Table of contents

    Quantcast Choice is a popular Consent Management Platform (CMP) for publishers for good reasons. It’s well proven, easy to set-up, free to use and utilises the IAB Consent Management Framework.

    That framework ensures that the consent users give is passed to every demand partner who has also adopted the standard framework. The problem that publishers face is that Google aren’t signed up to that framework, so additional steps are needed to ensure that any Google ads served to a user honour that user’s consent preference.

    Tying ads behind a yes/no to consent

    Quantcast choice now makes it easier to honour user preference and meet Google EU User Consent standards as it now has out of the box compatibility with support for Google’s advertising products.

    The simplest solution is to delay showing ads to the user until after consent has been gained. Great! But how do you actually do that?

    Firstly, you’ll want to make sure you are not going to serve ads until the user has agreed to your consent popup. To do this we need to use the disableInitialLoad() function within Google’s API.

    Quantcast1

    You’ll need to make sure that the disableInitialLoad() function is before enableServices().

    To get the ads to fire after consent is recorded we will use the refresh() function, but more on that later.

    Implementation within Quantcast choice CMP

    In order for the CMP to perform its duties, we need to link our decision to serve personalized ads with what consent is recorded by the CMP.

    To do that we will use the following code, appended to the bottom of the ‘out of the box’ Quantcast choice code:

    Quantcast2

    How does this work?

    Once the CMP has loaded, this extra snippet will make the decision on whether or not personalized ads are shown.

    If the CMP records a positive result and the user has given their consent for personalized ads, the refresh() function is called, overriding the previous disableInitialLoad() function and your Ad Manager ad units will fire as normal.

    If no consent is given by the user, the CMP will change the request to Ad Manager to only retrieve non-personalized ads using the function: setRequestNonPersonalizedAds(1).

    For more information on the EU User Consent Policy, download our free guide.

    divider

    More From Our Blog

    How Publishers Should Handle Google’s Cookie Reversal
    How Publishers Should Handle Google’s Cookie Reversal
    September 2024
    Navigating the Ad Blocker Dilemma: 6 Strategies for Publishers
    Navigating the Ad Blocker Dilemma: 6 Strategies for Publishers
    August 2024
    5 Advanced Monetization Strategies for Online Publishers
    5 Advanced Monetization Strategies for Online Publishers
    July 2024
    View Blog