Nielsen DCR

The AmpNielsen plugin offers a quick way to integrate AmpPlayer with the Nielsen SDK. This plugin will handle the interaction between the AmpPlayer with Nielsen as well as the measurements on the video playback.

If you desire to check out a basic implementation please refer to our application samples:

Adding the Plugin to the Xcode project

Manual Installation

To manually install the plugin you’ll need to download our latest distribution. You’ll have to look for the AmpNielsen.framework and the AmpCore.framework, for tvOS look instead for the AmpCoreTV.framework and the AmpNielsenTV.framework.

You will also need the Nielsen SDK for iOS/tvOS, you can download it on the release page.

The latest version of the Nielsen SDK used by this plugin is 7.1.0 on iOS and 7.1.0 on tvOS . Newer versions may be used, but you may run into unexpected errors until an update is released.

After aquiring the frameworks you can just drag them to you Xcode project directory.

manual installation 1

The last step, is to mark every imported framework for Embed & Sign in the project’s general tab.

manual installation 2


If you don’t have CocoaPods installed, refer to the CocoaPods documentation. To use CocoaPods, first create a Podfile in the directory containing the Xcode project. For the AmpNielsen plugin, the Podfile should look like this:

target "ProjectName" do


  pod 'AmpCore'
  pod 'AmpNielsen'
  pod 'NielsenAppSDK'


Once you have added the Podfile just run the command pod install --repo-update in the directory it’s located. Once the command has been completed you should se a new .xcworkspace file in your folder. Now you can start integrating the library.


You need a working implementation of the AmpPlayer before using this plugin. If you need the implementation guide for AmpPlayer please refer to our documentation.


The first step is to import the AmpNielsen plugin. In the most likely scenario you will need the AmpCore library.

import AmpCore
import AmpNielsen

Creating a new instance

To use this plugin you should first initialize it. You need to specify the player being used as well as the view were the ads will be displayed.

let appInfo = """
"sfcode": "dcr",
"appname": "AppName"}

nielsen = AmpNielsenManager(player: player, appInfo: appInfo)
The appid and sfcode are both provided by Nielsen check their docs for more info on this.

Adding metadata

You’ll also nee to add metadata to track correctly the current playback. You can check the documents on this to check every configuration option.

nielsen?.set(metaData: metaData)

Additional Information

This guide was written on 45/28/2020 and it’s last revision was made on 5/28/2020. If you need any additional support please contact us through our offical support email.