The RTB-Stack SDK allows you to include GDPR consent information in ad requests. Note that the SDK itself does not gather GDPR consent; instead, you must integrate it with a Consent Management Platform (CMP) to obtain this information.
Implementing GDPR Consent
Obtain GDPR Consent: Implement your own mechanism or integrate with a CMP to determine if GDPR consent is required and to obtain the consent string.
Set GDPR Consent in SDK: Once you have the necessary consent information, use the following methods to set this data within the SDK. These methods should be called only once as they store the data in local storage.