Global Privacy Policy Support
info
The Global Privacy Policy policy is supported by NAM SDK version 6.1.0 and up.
GFPPrivacySetting
GFPPrivacySetting is an API added to support policies related to privacy (=GDPR, COPPA, etc.).
- underAgeOfConsent
- Indicates whether advertising is requested for non-adults.
- childDirected
- Indicates whether the page or app should be treated as a child-directed service under the Children's Online Privacy Protection Act (COPPA).
- Objective-C
- Swift
GFPPrivacySetting *privacySetting = [[GFPPrivacySetting alloc] initWithUnderAgeOfConsent:NO childDirected:NO];
privacySetting.underAgeOfConsent = YES;
privacySetting.childDirected = YES;
[GFPAdManager adConfiguration].privacySetting = privacySetting;
let privacySetting = GFPPrivacySetting(underAgeOfConsent: false, childDirected: false)
privacySetting.underAgeOfConsent = true
privacySetting.childDirected = true
GFPAdManager.adConfiguration().privacySetting = privacySetting