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
Now, when the consent is not set, the getConsentData will call the callback with this data:
{
gdprApplies: ...,
hasGlobalScope: ...,
consentData: undefined //this is the change
}
Further considerations
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
[X] The PR relates to only one subject with a clear title.
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
Further considerations
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