DCR Italy Static App SDK: Difference between revisions
From Engineering Client Portal
(Created page with "{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|International}} {{CurrentBreadcrumb}} Category:Digital == Overview == The Nielsen SDK is one of multiple framework SD...") |
No edit summary |
||
Line 19: | Line 19: | ||
Specific steps are outlined in the [[DCR Italy Video App SDK]] documentation. | Specific steps are outlined in the [[DCR Italy Video App SDK]] documentation. | ||
== Populate Metadata Object == | == Populate and Pass Metadata Object == | ||
The Nielsen SDK is able to monitor Application launch events and how long your app has been running. Once the Nielsen SDK has been Initialized, pass <code>"type":'static'</code> as a JSON object via loadMetadata. | The Nielsen SDK is able to monitor Application launch events and how long your app has been running. Once the Nielsen SDK has been Initialized, pass <code>"type":'static'</code> as a JSON object via loadMetadata. | ||
Line 31: | Line 31: | ||
"segC":"CustomSegmentValueC" //Optional | "segC":"CustomSegmentValueC" //Optional | ||
]; | ]; | ||
self.nielsenAppApi?.loadMetadata(staticmetadata) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
self.nielsenAppApi?.loadMetadata(staticmetadata) | self.nielsenAppApi?.loadMetadata(staticmetadata) | ||
Line 38: | Line 39: | ||
"type": "static", | "type": "static", | ||
"section": "siteSection", | "section": "siteSection", | ||
"segA":"CustomSegmentValueA", //Optional | |||
"segB":"CustomSegmentValueB", //Optional | |||
"segC":"CustomSegmentValueC" //Optional | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 21:59, 7 November 2017
Overview
The Nielsen SDK is one of multiple framework SDKs that Nielsen provides to enable measuring linear (live) and on-demand TV viewing using TVs, mobile devices, etc. The App SDK is the framework for mobile application developers to integrate Nielsen Measurement into their media player applications. It supports a variety of Nielsen Measurement Products like Digital in TV Ratings, Digital Content Ratings (DCR & DTVR), Digital Ad Ratings (DAR), Digital Audio. Nielsen SDKs are also equipped to measure static content and can track key life cycle events of an application like:
- Application launch events and how long app was running
- Time of viewing a sub section / page in the application.
Implementation
This guide covers implementation steps for iOS using Xcode and Java using Android Studio to enable STATIC MEASUREMENT within you APP.
Prerequisites
To start using the Nielsen App SDK, your Xcode or Android Studio environments need to have specific Frameworks or Classes included in your project/app. This information is detailed in the DCR Italy Video App SDK documentation.
The remainder of this document will assume that you have followed the steps outlined in the DCR Italy Video App SDK documentation to Initialize the Nielsen SDK.
Initialize the SDK
Specific steps are outlined in the DCR Italy Video App SDK documentation.
Populate and Pass Metadata Object
The Nielsen SDK is able to monitor Application launch events and how long your app has been running. Once the Nielsen SDK has been Initialized, pass "type":'static'
as a JSON object via loadMetadata.
Swift
let staticmetadata = [
"type": "static",
"section": "siteSection",
"segA":"CustomSegmentValueA", //Optional
"segB":"CustomSegmentValueB", //Optional
"segC":"CustomSegmentValueC" //Optional
];
self.nielsenAppApi?.loadMetadata(staticmetadata)
self.nielsenAppApi?.loadMetadata(staticmetadata)
Objective C
NSDictionary *metadata = @
{
"type": "static",
"section": "siteSection",
"segA":"CustomSegmentValueA", //Optional
"segB":"CustomSegmentValueB", //Optional
"segC":"CustomSegmentValueC" //Optional
}
Java
bye