-
Notifications
You must be signed in to change notification settings - Fork 0
Additional Meta AudienceNetwork steps
⚡ Before you start
Make sure you have correctly update app Info.plist.
Implement the setAdvertiserTrackingEnabled flag, irrespective of the use of mediation, to inform Facebook whether to use the data to deliver personalized ads.
Set flag to inform Audience Network to use the data to deliver personalized ads in line with your own legal obligations, platform terms, and commitments you’ve made to your users.
import CleverAdsSolutions
import FBAudienceNetwork
func requestATT(){
FBAdSettings.setAdvertiserTrackingEnabled(enabled)
CAS.create(...)
}
Meta Audience Network Data Processing Options for US Users Limited Data Use is a data processing option that gives you more control over how your data is used in Meta’s systems and better supports your compliance efforts with various US state privacy regulations. To utilize this feature, you must proactively enable Limited Data Use.
Visit Meta’s developer documentation for details.
If you do not want to enable Limited Data Use (LDU) mode, pass an empty string array:
FBAdSettings.setDataProcessingOptions([])
To enable LDU for users and specify user geography, call setDataProcessingOptions
in a form like this:
FBAdSettings.setDataProcessingOptions(["LDU"])
You can determine whether the user has consented to Meta or not with Additional Consent from CMP. To do so, use code like the following:
let metaConsent = CAS.settings.getAdditionalConsent(providerId: 89);
if (metaConsent == CASConsentStatus.accepted) {
FBAdSettings.setDataProcessingOptions([])
} else if (metaConsent == CASConsentStatus.denied) {
FBAdSettings.setDataProcessingOptions(["LDU"])
} else {
// AC String is not available on disk.
// Please check for consent status after the user completes the CMP flow.
}
🔗 Done! What’s Next?
- Read about Advanced integration to add more ad networks.
- Project Setup
- Advanced integration
- Additional mediation steps
- AppStore data disclosure
- App-ads.txt🔗