Digital Measurement Simplified API Supplements: Difference between revisions

From Engineering Client Portal

m (formatting fix)
 
(4 intermediate revisions by one other user not shown)
Line 66: Line 66:
{  
{  
   "metadata": {  
   "metadata": {  
       "content":{  
       "content": {  
         "type":"content",
         "type":"content",
         "length":"86400",
         "length":"0",
         "adModel":"1",
         "adModel":"1",
         "adloadtype":"1"
         "adloadtype":"1"
Line 118: Line 118:
// Sample input object for complete event:
// Sample input object for complete event:
{  
{  
"metadata": {  
  "metadata": {  
"content":{  
      "content": {  
"assetName":"MyTest789",
        "assetName":"MyTest789",
"assetid":"BIG_BUNNY",
        "assetid":"BIG_BUNNY",
"length":"3600",
        "length":"3600",
"program":"MyProgram",
        "program":"MyProgram",
"segB":"CustomSegmentValueB",
        "segB":"CustomSegmentValueB",
"segC":"segmentC",
        "segC":"segmentC",
"title":"S2,E3",
        "title":"S2,E3",
"type":"content",
        "type":"content",
"section":"cloudApi_app",
        "section":"cloudApi_app",
"airdate":"2016-02-20",
        "airdate":"2016-02-20",
"isfullepisode":"y"
        "isfullepisode":"y"
},
      },
"ad": {},
      "ad": {},
"static": {}
      "static": {}
},
  },
"event": "complete",
  "event": "complete",
"type": "content",
  "type": "content",
"playheadPosition": "",
  "playheadPosition": "",
"id3Data": ""
  "id3Data": ""
}  
}
</syntaxhighlight>
</syntaxhighlight>


Line 150: Line 150:
// Sample input object for playhead event with id3 payload and ottInfo:
// Sample input object for playhead event with id3 payload and ottInfo:
{  
{  
"metadata": {  
  "metadata": {  
"content":{  
      "content": {  
"assetName":"MyTest789",
        "assetName":"MyTest789",
"assetid":"BIG_BUNNY",
        "assetid":"BIG_BUNNY",
"length":"3600",
        "length":"3600",
"program":"MyProgram",
        "program":"MyProgram",
"segB":"CustomSegmentValueB",
        "segB":"CustomSegmentValueB",
"segC":"segmentC",
        "segC":"segmentC",
"title":"S2,E3",
        "title":"S2,E3",
"type":"content",
        "type":"content",
"section":"cloudApi_app",
        "section":"cloudApi_app",
"airdate":"2016-02-20",
        "airdate":"2016-02-20",
"isfullepisode":"y"
        "isfullepisode":"y"
},
      },
"ad": {},
      "ad": {},
"static": {}
      "static": {}
},
  },
"ottData":{  
  "ottData":{  
"ottStatus":"1",
      "ottStatus":"1",
"ottTSPlype":"casting",
      "ottTSPlype":"casting",
"ottDevice":"chromecast",
      "ottDevice":"chromecast",
"ottDeviceName":"Google ChromeCast",
      "ottDeviceName":"Google ChromeCast",
"ottDeviceID":"1234",
      "ottDeviceID":"1234",
"ottDeviceModel":"ChromeCast",
      "ottDeviceModel":"ChromeCast",
"ottDeviceVersion":"1.0.0"
      "ottDeviceVersion":"1.0.0"
},
  },
"event": "playhead",
  "event": "playhead",
"type": "content",
  "type": "content",
"playheadPosition": "",
  "playheadPosition": "",
"id3Data": "www.nielsen.com/065H2g6E7ZyQ5UdmMAbbpg==/_
  "id3Data": "www.nielsen.com/065H2g6E7ZyQ5UdmMAbbpg==/_
EMc37zfVgq_8KB7baUYfg==/ADQCAmgV1Xyvnynyg60kZO_Ejkcn
      EMc37zfVgq_8KB7baUYfg==/ADQCAmgV1Xyvnynyg60kZO_Ejkcn
2KLSrTzyJpZZ-QeRn8GpMGTWI7-HrEKzghxyzCyBEoIDv2kA2g1Q
      2KLSrTzyJpZZ-QeRn8GpMGTWI7-HrEKzghxyzCyBEoIDv2kA2g1Q
JmeYOl5GnwfrLDVK2bNLTbQxr1z9VBfxahBcQP5tqbjhyMzdVqrMK
      JmeYOl5GnwfrLDVK2bNLTbQxr1z9VBfxahBcQP5tqbjhyMzdVqrMK
uvvJO1jhtSXa9AroChb11ZUnG1WVJx2O4M=/33648/22847/00"
      uvvJO1jhtSXa9AroChb11ZUnG1WVJx2O4M=/33648/22847/00"
}
}
  </syntaxhighlight>
  </syntaxhighlight>
Line 191: Line 191:
// Sample mDAR/OCR input object for playhead event and ad type:
// Sample mDAR/OCR input object for playhead event and ad type:
{  
{  
"metadata": {  
  "metadata": {  
"content":{  
      "content": {  
"assetName":"MyTest789",
        "assetName":"MyTest789",
"assetid":"BIG_BUNNY",
        "assetid":"BIG_BUNNY",
"length":"3600",
        "length":"3600",
"program":"MyProgram",
        "program":"MyProgram",
"segB":"CustomSegmentValueB",
        "segB":"CustomSegmentValueB",
"segC":"segmentC",
        "segC":"segmentC",
"title":"S2,E3",
        "title":"S2,E3",
"type":"content",
        "type":"content",
"section":"cloudApi_app",
        "section":"cloudApi_app",
"airdate":"2016-02-20",
        "airdate":"2016-02-20",
"isfullepisode":"y"
        "isfullepisode":"y"
},
      },
"ad": {
      "ad": {
"assetid":"ad-21",
        "assetid":"ad-21",
"nol_ocrtag":"https:\/\/secure-qat2.imrworldwide.com\/cgi-bin\/m?ci=nlsnci535&am=3&at=view&rt=banner
        "nol_ocrtag":"https:\/\/secure-qat2.imrworldwide.com\/cgi-bin\/m?ci=nlsnci535&am=3&at=view&rt=banner
&st=image&ca=nlsn12452&cr=crtve&pc=spotify_plc0001&ce=spotify&r=1065684265",
            &st=image&ca=nlsn12452&cr=crtve&pc=spotify_plc0001&ce=spotify&r=1065684265",
"type":"preroll",
        "type":"preroll",
},
      },
"static": {}
      "static": {}
},
  },
"event": "playhead",
  "event": "playhead",
"type": "ad",
  "type": "ad",
"playheadPosition": "5"
  "playheadPosition": "5"
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 223: Line 223:
// Sample radio player input object for playhead event:
// Sample radio player input object for playhead event:
{  
{  
"metadata": {  
  "metadata": {  
"content":{
      "content": {
"dataSrc": "cms",
        "dataSrc": "cms",
"type": "radio",
        "type": "radio",
"stationType": "1",
        "stationType": "1",
"assetid": "WXYZ-FM",
        "assetid": "WXYZ-FM",
"provider": "MyRadioProvider"
        "provider": "MyRadioProvider"
},
      },
"ad": {},
      "ad": {},
"static": {}
      "static": {}
},
  },
"event": "playhead",
  "event": "playhead",
"type": "content",
  "type": "content",
"playheadPosition": "1502704743",
  "playheadPosition": "1502704743",
"id3Data": ""
  "id3Data": ""
}
}


</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 16:56, 3 May 2019

JSON input object examples

The following are additional JSON input object examples for the Simplified API

Static Metadata

// Sample input Object for static metadata
// Since only recording static data, playheadposition = ""
{ 
   "metadata": { 
      "content": {},
      "ad": {},
      "static": { 
         "type":"static",
         "assetid":"Static1",
         "section":"Page",
         "segA":"S07E04:NBC",
         "segB":"teams",
         "segC":"Atlanta",
         "crossId1":"Reference"
      }
   },
   "ottData": {},
   "event": "playhead",
   "type": "static",
   "playheadPosition": "",
}

Ad Metadata

// Sample input object for playhead event with ad metadata
// Note: Content metadata must be also set for "playhead" event with "ad" type.
{ 
   "metadata": { 
      "content": { 
         "assetName":"MyTest789",
         "assetid":"BIG_BUNNY",
         "length":"3600",
         "program":"MyProgram",
         "segB":"CustomSegmentValueB",
         "segC":"segmentC",
         "title":"S2,E3",
         "type":"content",
         "section":"cloudApi_app",
         "airdate":"2016-02-20",
         "isfullepisode":"y"
         },
     "ad": {
        "assetid":"AD12345",
        "title":"ADTestTitle",
        "type":"preroll",
        "length":"20"
     },
     "static": {}
   },
   "event": "playhead",
   "type": "ad",
   "playheadPosition": "5"
}

ID3 Payload

// Sample input object for playhead event with id3 payload
{ 
   "metadata": { 
      "content": { 
         "type":"content",
         "length":"0",
         "adModel":"1",
         "adloadtype":"1"
      },
      "ad": {},
      "static": {}
    },
   "event": "playhead",
   "type": "content",
   "playheadPosition": "",
   "id3Data": "www.nielsen.com/065H2g6E7ZyQ5UdmMAbbpg==/_
      EMc37zfVgq_8KB7baUYfg==/ADQCAmgV1Xyvnynyg60kZO_Ejkcn
      2KLSrTzyJpZZ-QeRn8GpMGTWI7-HrEKzghxyzCyBEoIDv2kA2g1Q
      JmeYOl5GnwfrLDVK2bNLTbQxr1z9VBfxahBcQP5tqbjhyMzdVqrMK
      uvvJO1jhtSXa9AroChb11ZUnG1WVJx2O4M=/33648/22847/00"
}

Pause Event

// Sample input object for pause event
{ 
   "metadata": { 
      "content": { 
         "assetName":"MyTest789",
         "assetid":"BIG_BUNNY",
         "length":"3600",
         "program":"MyProgram",
         "segB":"CustomSegmentValueB",
         "segC":"segmentC",
         "title":"S2,E3",
         "type":"content",
         "section":"cloudApi_app",
         "airdate":"2016-02-20",
         "isfullepisode":"y"
      },
      "ad": {},
      "static": {}
   },
   "event": "pause",
   "type": "content",
   "playheadPosition": "",
   "id3Data": ""
}

Complete Event

// Sample input object for complete event:
{ 
   "metadata": { 
      "content": { 
         "assetName":"MyTest789",
         "assetid":"BIG_BUNNY",
         "length":"3600",
         "program":"MyProgram",
         "segB":"CustomSegmentValueB",
         "segC":"segmentC",
         "title":"S2,E3",
         "type":"content",
         "section":"cloudApi_app",
         "airdate":"2016-02-20",
         "isfullepisode":"y"
      },
      "ad": {},
      "static": {}
   },
   "event": "complete",
   "type": "content",
   "playheadPosition": "",
   "id3Data": ""
}

Custom values

id3 and ott

// The follow input objects are for custom/advanced implementations
// Not required.

// Sample input object for playhead event with id3 payload and ottInfo:
{ 
   "metadata": { 
      "content": { 
         "assetName":"MyTest789",
         "assetid":"BIG_BUNNY",
         "length":"3600",
         "program":"MyProgram",
         "segB":"CustomSegmentValueB",
         "segC":"segmentC",
         "title":"S2,E3",
         "type":"content",
         "section":"cloudApi_app",
         "airdate":"2016-02-20",
         "isfullepisode":"y"
      },
      "ad": {},
      "static": {}
   },
   "ottData":{ 
      "ottStatus":"1",
      "ottTSPlype":"casting",
      "ottDevice":"chromecast",
      "ottDeviceName":"Google ChromeCast",
      "ottDeviceID":"1234",
      "ottDeviceModel":"ChromeCast",
      "ottDeviceVersion":"1.0.0"
   },
   "event": "playhead",
   "type": "content",
   "playheadPosition": "",
   "id3Data": "www.nielsen.com/065H2g6E7ZyQ5UdmMAbbpg==/_
      EMc37zfVgq_8KB7baUYfg==/ADQCAmgV1Xyvnynyg60kZO_Ejkcn
      2KLSrTzyJpZZ-QeRn8GpMGTWI7-HrEKzghxyzCyBEoIDv2kA2g1Q
      JmeYOl5GnwfrLDVK2bNLTbQxr1z9VBfxahBcQP5tqbjhyMzdVqrMK
      uvvJO1jhtSXa9AroChb11ZUnG1WVJx2O4M=/33648/22847/00"
}

mDAR/OCR

// Sample mDAR/OCR input object for playhead event and ad type:
{ 
   "metadata": { 
      "content": { 
         "assetName":"MyTest789",
         "assetid":"BIG_BUNNY",
         "length":"3600",
         "program":"MyProgram",
         "segB":"CustomSegmentValueB",
         "segC":"segmentC",
         "title":"S2,E3",
         "type":"content",
         "section":"cloudApi_app",
         "airdate":"2016-02-20",
         "isfullepisode":"y"
      },
      "ad": {
         "assetid":"ad-21",
         "nol_ocrtag":"https:\/\/secure-qat2.imrworldwide.com\/cgi-bin\/m?ci=nlsnci535&am=3&at=view&rt=banner
            &st=image&ca=nlsn12452&cr=crtve&pc=spotify_plc0001&ce=spotify&r=1065684265",
         "type":"preroll",
      },
      "static": {}
   },
   "event": "playhead",
   "type": "ad",
   "playheadPosition": "5"
}

Radio Player

// Sample radio player input object for playhead event:
{ 
   "metadata": { 
      "content": {
         "dataSrc": "cms",
         "type": "radio",
         "stationType": "1",
         "assetid": "WXYZ-FM",
         "provider": "MyRadioProvider"
      },
      "ad": {},
      "static": {}
   },
   "event": "playhead",
   "type": "content",
   "playheadPosition": "1502704743",
   "id3Data": ""
}