scm-spain / boros-CMP

GDPR CMP (Consent Managment Provider) implementation
MIT License
5 stars 1 forks source link

Hotfix/get consent data should not throw error #57

Closed alextremp closed 5 years ago

alextremp commented 5 years ago

Background

Boros CMP is being tested to be integrated in Fotocasa. An error is printed in the console when an user enters the page, no consent is set yet and some Ads are being loaded using the AppNexus SDK.

Goal

Remove the error trace as it's not an error.

Implementation

The IAB framework is not clear about the implementation, but it says "The callback is called only after consent is obtained from the UI or existing cookies". Doing that would lead the page to never be able to load Ads if the SDK is not running a race condition (p.ex. a timeout) when it does not receive a response from the callback in a while.

Checklist

Visual Description