Nielsen SDK Documentation

DAR Implementation Guide – iOS

DAR Implementation Guide

API Version 5.1.1 (Current)

Step 1: Prerequisites

To start using App SDK, the following details are required.

  • App ID (appid): Unique ID assigned to the player/site and configured by product.
  • sfcode: Unique identifier for the environment that the SDK should point to.
  • Nielsen SDK and Sample Player: A part of the downloaded package.

If you do not have any of these pre-requisites or if you have any questions, please contact our SDK sales support team.

Refer to Onboarding process for more information on how to get a Nielsen App SDK and App ID.

Step 2: Import Library

Refer to Importing Frameworks for information on importing libraries.
  • The latest version of App SDK allows instantiating multiple instances of App SDK object and can be used simultaneously without any issues.

Step 3: Initialize SDK

Initialize App SDK as soon as the application is launched. Refer to Initialization for details on initializing an AppSDK object and the parameters required.

Step 4: Configure and fire API Calls

Configure API calls – loadMetadata

DAR tags are used to track commercial delivery for campaign ratings. DAR tags are received during the streaming session from the Content Management System (CMS) identifying that the video contains ad content. This information should be passed as a JSON object via the loadMetadata method with DAR contents.

DAR Tags

Nielsen DAR tag may come in different forms from ad service via VAST XML or ad service integrated player framework library

The CMS data must be passed as a JSON object.

Refer to Metadata section for the list of parameters to be passed in the JSON object.

loadMetadata call after the first play call must have ‘content’ details (“type”: “content”). This call should occur before any preroll ad starts playing.

API Call sequence

Call loadMetadata with JSON metadata for content as below.

The DAR tags received from your CMS system should be transformed into a JSON string and passed in via the loadMetadata method.

Variable Name Variable Description Example
type Type identifies the tag content type. For DAR, the data type should be always set to “ad”. ad
ocrtag The complete tag/URL is supplied by your Technical Account Manager. This should include the complete URL including the http portion. The ocrtag should be properly URI encoded. http://secure- uat-cert.imrworldwide.com/cgi-bin/m?ci= ENTXX5&am=3&ep=1&at=view&rt=banner&st= image&ca=XX1717&cr=crvXX35&pc=plc1234

Step 5: SDK Integration

After getting the string from an ad service, to integrate Nielsen SDK for DAR tag, the app should first identify a Nielsen beacon in the use cases below

  • If the input string is CDATA string, get the value of the CDATA as a new input string.
  • If the input string (or new input string) starts with http and the hostname ends with “imrworldwide.com”, the input string is a Nielsen beacon (case 1 and case 3).
  • If the input string (or new input string) starts with http and the CR field exists
    • Get the value of the CR field.
    • If the CR value starts with http and the hostname of the CR value ends with “imrworldwide.com”, the CR value is a Nielsen beacon (case 2 and case 4).
    • If the Nielsen beacon exists, remove the value of the CR field from the input string and process the updated string for the non-DAR beacon.
  • If the Nielsen beacon exists
    • URL decode the Nielsen beacon.
    • If the c13 field exists in the Nielsen beacon, remove the c13 from the Nielsen beacon.
    • Create JSON with the Nielsen beacon

      Sample JSON string with the DAR string (decoded http string without the c13)

    • Send the JSON to the Nielsen SDK using loadMetadata.

      Digital Advertisement Ratings Variables (Usage: Online Campaign)

      Variable Name Variable Description Example
      type Type identifies the tag content type. For DAR, the data type should be always set to “ad”. ad
      ocrtag The complete tag/URL is supplied by your Technical Account Manager. This should include the complete URL including the http portion. The ocrtag should be properly URI encoded. http://secure- uat-cert.imrworldwide.com/cgi-bin/m?ci= ENTXX5&am=3&ep=1&at=view&rt=banner&st= image&ca=XX1717&cr=crvXX35&pc=plc1234

      Example


      Description

      The DAR tags (ocrtag) received from your CMS system should be transformed into a JSON string and passed in via the loadMetadata method.

      JSON

      • type – Type identifies tag content type. For DAR, data type should be always set to “ad”.
      • ocrtag – The complete tag/URL is supplied by your Technical Account Manager. This should include the complete URL including the http portion. The DAR tag should be properly URI encoded.

Nielsen Measurement Opt-Out Implementation

As a global information and measurement leader, we are committed to protecting the privacy and security of the data we collect, process and use. Our digital measurement products are not used to identify the consumer in any way, but they help us and our clients measure and analyze how consumers engage with media across online, mobile and emerging technologies, and offer insights into consumer behavior.

  • When the app user wants to opt in or opt out of Nielsen measurement, a new dynamic page (with content string obtained from optOutURL) should be displayed.
    • Use optOutStatus to retrieve the device’s Opt-Out status.
  • This Opt-out page should be displayed in a webview (within the app) and not in any external browser.
  • Capture the user’s selection in this page and pass it to the SDK through userOptOut for Nielsen to save the user’s preference.
  • For more details, refer to Opt-Out Implementation and Nielsen Digital Privacy.

The SDK will continue measurement even after the user has opted out from Nielsen measurement.

Click here for Opt-Out implementation guidelines to be followed for TVOS-based measurement.

Pre-Certification Checklists

After the application is ready to be sent for Nielsen Certification, please go through the Pre-Certification Checklist and ensure the app behaves as expected, before submitting to Nielsen.

Testing an Implementation – App

Click here for information on Testing the App Implementation.