Functionality
AdConsent currently follows the IAB guidelines on how to handle legitimate interests from the publisher and third parties within GDPR law. If there is a proven legitimate interest over some specific parts of personal data (e.g., essential data to guarantee the correct working condition from the site, fraud prevention, etc.), users may not need to give explicit consent. However, they still maintain the right to object to those legitimate interests.
For legal reasons or other, the publisher may want to oblige explicit consent from the user to all purposes, whether or not they are legitimate interests from the parties. This can be achieved through the disableLegitimateInterest
function which disables the automatic agreement to legitimate interests in AdConsent. This feature applies to users within GDPR consent zone only and it is disabled by default, given it may lead to severe earnings loss, if e.g., the site runs ads from players that depend on legitimate interests to operate. In this case, the full opt-out consent will be also objecting to legitimate interests, most likely resulting in no ads being shown.
Syntax
function adconsent.gdpr()
argument name | type | optional | value | description |
---|---|---|---|---|
command | string |
| ||
parameter | - | ✔️ | - | Not applicable. |
callback | function | ✔️ |
| The callback function that is called with the function call result. |
Description
When this function is called, AdConsent ticks all the objections to legitimate interests by default, so that when the user starts consent customization, there is no consent whatsoever, given it normal or legitimate interest. Therefore, use this function with caution, given it may result in a deeper opt-out than the one legally needed, impacting service quality and/or site earnings.
If the users does not use customization of consent, i.e. accepts all consent, legitimate interest is still enabled by default. This feature only applies in the customization screen.
Scope
The function must be called before AdConsent shows the GUI. Calls after AdConsent has shown the GUI will be ignored.
Examples
This configuration will activate to disable legitimate interest by default.
adconsent.gdpr('disableLegitimateInterest');