ℹ️ To help publishers comply with relevant data protection and privacy regulations, the Teads inApp SDK offers various ways to provide user consent during ad server requests.
CMP IAB Compliant
Do not require any additional configuration.
If you have a consent management platform (CMP) compliant with the IAB GDPR specifications, IAB CCPA specifications and IAB GPP specifications, good news,
Teads inApp SDK is able to retrieve the user consent signals by itself through the iOS UserDefaults.
Regulation | Version | Expected keys |
---|---|---|
GDPR | TCFv1 | - IABConsent_SubjectToGDPR - IABConsent_ConsentString |
GDPR | TCFv2 | - IABTCF_CmpSdkID - IABTCF_gdprApplies - IABTCF_TCString - IABTCF_PolicyVersion |
CCPA | - IABUSPrivacy_String |
|
GPP | - IABGPP_HDR_GppString - IABGPP_GppSID |
CMP non IAB Compliant
Requires additional configuration.
If your CMP is not IAB compliant (or not installed), you'll need to manually provide the status and user consent at every ad request.
GDPR
Use the userConsent
method from the TeadsAdPlacementSettings
Builder.
TCFv1
The param subjectToGDPR
should be:
1
if the traffic or the publisher is in the EEA (European Economic Area),0
if it is not
let teadsAdPlacementSettings = TeadsAdPlacementSettings { settings in
settings.userConsent(subjectToGDPR: subject, consent: gdprConsent, tcfVersion: .v1, cmpSdkID: cmpSdkId) // The user consent following the IAB specifications
}
TCFv2
The param subjectToGDPR
should be:
1
if the traffic or the publisher is in the EEA (European Economic Area),0
if it is not
let teadsAdPlacementSettings = TeadsAdPlacementSettings { settings in
settings.userConsent(subjectToGDPR: subject, consent: gdprConsent, tcfVersion: .v2, cmpSdkID: cmpSdkId) // The user consent following the IAB specifications
}
CCPA
Use the setUsPrivacy
method from the TeadsAdPlacementSettings
Builder:
let teadsAdPlacementSettings = TeadsAdPlacementSettings { settings in
settings.setUsPrivacy(consent: ccpaConsent) // The user consent following the IAB specifications
}
GPP
Use the setGppConsent
method from the TeadsAdPlacementSettings
Builder:
let teadsAdPlacementSettings = TeadsAdPlacementSettings { settings in
settings.setGppConsent(consent: gppConsent, sectionIds: gppSectionIds) // The user consent following the IAB specifications
}