GDPR - adform/adform-ios-sdk GitHub Wiki

By default, Adform Advertising SDK will check CMP settings and use that information. More information about this here

It is possible to set GDPR and GDPR consent manually. You need to use setGdpr: and setGDPRConsent: methods. For Gdpr consent, you need to set a base64-encoded string.

Example:

Swift

AdformSDK.setGDPR(true)

let gdprConsent = "GgdprConsent".data(using: .utf8)?.base64EncodedString()
AdformSDK.setGDPRConsent(gdprConsent)
Objective-C
[AdformSDK setGDPR:@(true)];

NSString *encodedGDPRConsent = [[@"GgdprConsent" dataUsingEncoding:NSUTF8StringEncoding] base64EncodedStringWithOptions:0];
[AdformSDK setGDPRConsent:encodedGDPRConsent];
⚠️ **GitHub.com Fallback** ⚠️