Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prebid cmp static additional consent #5801

Closed
Nicola1976 opened this issue Sep 30, 2020 · 6 comments
Closed

Prebid cmp static additional consent #5801

Nicola1976 opened this issue Sep 30, 2020 · 6 comments

Comments

@Nicola1976
Copy link

Hi, I wanted to know if and how the additional consent is passed in the prebid configuration.

As described here it should be supported: gdpr.consentData.getTCData.addtlConsent.

Something like this?:

gdpr: {
cmpApi: 'static',
consentData: {
getTCData: {
"tcString": euconsentStored,
"addtlConsent": "some string",
"gdprApplies": true,
"purpose": {
"consents": {
"1": true
}
}
}
}
}

But I don't quite understand where I should read the string from.
Here a site on which we have implemented the property addtlConsent: http://www.freesenzaglutine.it/

Thanks a lot
nicola

@patmmccann
Copy link
Collaborator

I think what you are suggesting for static consent works because of this line (L321 in current master)

  consentObject = consentObject.getTCData;

then line 340 does storeConsentData(consentObject);

then the function does this (consentObject becomes cmpConsentObject inside the function)

if (cmpConsentObject.addtlConsent && utils.isStr(cmpConsentObject.addtlConsent)) {
  consentData.addtlConsent = cmpConsentObject.addtlConsent;
};

however I don't see addtlConsent on your test page getConfig.

image

@Nicola1976
Copy link
Author

Ok thanks,
you don't see the adconsent in the prebid config just because I don't know where to read the string from.

In case I didn't use the static mode of the cmp prebid module but the iab mode, would the add allow be passed automatically?

@patmmccann
Copy link
Collaborator

patmmccann commented Oct 1, 2020 via email

@patmmccann
Copy link
Collaborator

That being said, since it is passed to prebid server endpoint, you can use that endpoint call to validate it is getting set and passed on a live page.

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 25, 2020
@gglas gglas removed the stale label Jan 13, 2021
@ChrisHuie
Copy link
Collaborator

closing issue. Please refer to the explanation provided for more information on consent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants