Template

Difference between revisions of "iOS NoID Privacy and Opt-Out"

From Engineering Client Portal

(Retrieve current Opt-Out preference)
(Required Privacy Links)
 
(9 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
<syntaxhighlight lang=swift>NielsenAppApi?.userOptOut("nielsenappsdk://1"); // User opt-out</syntaxhighlight>
 
<syntaxhighlight lang=swift>NielsenAppApi?.userOptOut("nielsenappsdk://1"); // User opt-out</syntaxhighlight>
  
== Retrieve current Opt-Out preference ==
+
=== Required Privacy Links ===
 +
Users must either have access to the "About Nielsen Measurement" page, or have similar text available within the native app. Include "About Nielsen Measurement" and "Your Choices" link in the Privacy Policy / EULA or as a button near the link to the app's Privacy Policy.
 +
 
 +
In addition, the following text must be included in your app store description.
 +
<blockquote>
 +
'''"Please note: This app features Nielsen’s proprietary measurement software which contributes to market research, like Nielsen’s TV Ratings. Please see https://global.nielsen.com/legal/privacy-principles/digital-measurement-privacy-statement/
 +
</blockquote>
 +
 
 +
=== Retrieve current Opt-Out preference ===
 
Whether the user is opted out via OS-level Opt-out or via User Choice Opt-out, the current Opt-Out status as detected by the SDK is available via the [[optOutStatus]] property in the Nielsen SDK API
 
Whether the user is opted out via OS-level Opt-out or via User Choice Opt-out, the current Opt-Out status as detected by the SDK is available via the [[optOutStatus]] property in the Nielsen SDK API
 
<syntaxhighlight lang="objective-c">
 
<syntaxhighlight lang="objective-c">
Line 13: Line 21:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Display OptOut Notice ==
+
<!--
 +
=== Display OptOut Notice ===
 
Nielsen does not use cookies in measurement in Ireland; however, you may want to present this information to your user.  Sample code on how to do this is below:
 
Nielsen does not use cookies in measurement in Ireland; however, you may want to present this information to your user.  Sample code on how to do this is below:
  
==== Sample Code for Global Build ====
+
==== Sample Code ====
===== Swift =====
 
 
<syntaxhighlight lang="swift">
 
<syntaxhighlight lang="swift">
 
import UIKit
 
import UIKit
Line 35: Line 43:
 
     override func viewDidLoad() {
 
     override func viewDidLoad() {
 
         super.viewDidLoad()
 
         super.viewDidLoad()
 +
    // For English use: https://sites.nielsen.com/priv/browser/cookie-policy-ie-en.html
 +
    // For  Gaelic use: https://sites.nielsen.com/priv/browser/cookie-policy-ie-ga.html
  
    if let appApi = self.nielsenApi {
+
             if let url = URL(string: "https://sites.nielsen.com/priv/browser/cookie-policy-ie-en.html") {
            //Getting the optPut URL from SDK
 
             if let url = URL(string: appApi.optOutURL) {
 
 
                 webView.load(URLRequest(url: url))
 
                 webView.load(URLRequest(url: url))
 
                 webView.allowsBackForwardNavigationGestures = true
 
                 webView.allowsBackForwardNavigationGestures = true
            }}}
+
       
 +
        }}}
  
 
         func closeOptOutView() {
 
         func closeOptOutView() {
Line 47: Line 56:
 
         }}
 
         }}
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
-->
===== Objective-C =====
 
<syntaxhighlight lang="objective-c">
 
 
 
#import "OptOutVC.h"
 
#import "NielsenInit.h"
 
#import <NielsenAppApi/NielsenAppApi.h>
 
 
 
@interface OptOutVC ()
 
 
 
@property (weak, nonatomic) IBOutlet UIWebView *webView;
 
@end
 
 
 
@implementation OptOutVC
 
 
 
- (void)viewDidLoad {
 
    [super viewDidLoad];
 
 
 
- (void)viewDidLoad {
 
    [super viewDidLoad];
 
    //Getting the optPut URL from eventTracker
 
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL
 
URLWithString:self.nielsenApi.optOutURL]]];
 
}}
 
 
 
 
 
</syntaxhighlight>
 

Latest revision as of 11:28, 10 November 2022

Privacy and Opt-Out

The Irish Market build of the Nielsen SDK automatically Opt's Users out of the collection of any User Identifiable information or any Device Advertising ID.

When building your app:

  1. Ensure that you are using the NoID version of the Nielsen SDK Framework.
  2. Immediately following the initialization of the Nielsen SDK ensure you call the userOptOut API with Opt out selection:
NielsenAppApi?.userOptOut("nielsenappsdk://1"); // User opt-out

Required Privacy Links

Users must either have access to the "About Nielsen Measurement" page, or have similar text available within the native app. Include "About Nielsen Measurement" and "Your Choices" link in the Privacy Policy / EULA or as a button near the link to the app's Privacy Policy.

In addition, the following text must be included in your app store description.

"Please note: This app features Nielsen’s proprietary measurement software which contributes to market research, like Nielsen’s TV Ratings. Please see https://global.nielsen.com/legal/privacy-principles/digital-measurement-privacy-statement/

Retrieve current Opt-Out preference

Whether the user is opted out via OS-level Opt-out or via User Choice Opt-out, the current Opt-Out status as detected by the SDK is available via the optOutStatus property in the Nielsen SDK API

@property (readonly) BOOL optOutStatus