loadMetadata(): Difference between revisions

From Engineering Client Portal

No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
! Parameter !! Description !! JSON Object
! Parameter !! Description !! JSON Object
|-
|-
| rowspan=10 | jsonMetaData
| rowspan=9 | jsonMetaData
| '''DTVR'''
| '''DTVR'''
| <syntaxhighlight lang="java">  
| <syntaxhighlight lang="java">  
new JSONObject().put("adloadtype", "1");
new JSONObject().put("adModel", "1");
</syntaxhighlight>
</syntaxhighlight>
|-
|-
Line 27: Line 27:
     .put("type", "ad")
     .put("type", "ad")
     .put("ocrtag", "http://secure-uat-cert.imrworldwde.com/cgi-bin/m?ci=ENTXX5&am=3&ep=1&at=view&rt=banner&st=image&ca=cmp97144&cr=1186239&pc=3739659&r=2011370876");
     .put("ocrtag", "http://secure-uat-cert.imrworldwde.com/cgi-bin/m?ci=ENTXX5&am=3&ep=1&at=view&rt=banner&st=image&ca=cmp97144&cr=1186239&pc=3739659&r=2011370876");
</syntaxhighlight>
|-
|'''Digital Audio'''
type should always be “radio”. See [[Digital Audio Metadata]].
| <syntaxhighlight lang="java">
new JSONObject()
    .put("dataSrc", "cms")
    .put("type", "radio")
    .put("assetid", "WXYZ-FM")
    .put("stationType", "3")
    .put("provider", "MyRadioProvider");
</syntaxhighlight>
</syntaxhighlight>
|-
|-

Latest revision as of 23:51, 29 May 2019

Engineering Portal / Digital / Android SDK API Reference / loadMetadata()
The application uses this API to send metadata to the SDK. App constructs a JSON object and calls loadMetadata. The API that accepts the JSON string has been deprecated.

Syntax

public void loadMetadata(JSONObject jsonMetadata);

Input Parameters

Parameter Description JSON Object
jsonMetaData DTVR
 
new JSONObject().put("adModel", "1");
DAR

type should always be "ad" for DAR

 
new JSONObject()
    .put("type", "ad")
    .put("ocrtag", "http://secure-uat-cert.imrworldwde.com/cgi-bin/m?ci=ENTXX5&am=3&ep=1&at=view&rt=banner&st=image&ca=cmp97144&cr=1186239&pc=3739659&r=2011370876");
DCR

type should be “content”, “static”, “preroll”, “midroll” or “postroll”.

 
// Audio & Video Measurement:
new JSONObject()
    .put("type", "content")
    .put("assetid", "vid345-67483")
    .put("program", "ProgramName")
    .put("title", "Program S3, EP1")
    .put("length", "3600")
    .put("segB", "CustomSegmentValueB")
    .put("segC", "CustomSegmentValueC")
    .put("crossId1", "Reference11")
    .put("crossId2", "Reference22")
    .put("vcid", "cXX")
    .put("isfullepisode", "yes")
    .put("airdate", "20161013 20:00:00");
 
// Static Measurement:
new JSONObject()
    .put("type", "static")
    .put("section", "siteSection")
    .put("segA", "segmentA")
    .put("segB", "segmentB")
    .put("segC", "segmentC")
    .put("crossId1", "Reference11");
 
// Ad Measurement:
new JSONObject()
    .put("type", "preroll")
    .put("assetid", "AD361-84413")
    .put("title", "MyAdName");
DCR Germany

type should be “content”, “static”, “preroll”, “midroll” or “postroll”.

 
JSONObject contentMetadata = new JSONObject()
//SDK Metadata
    .put("type", "content")
    .put("assetid", "vid345-67483")
    .put("program", "Program Name")
    .put("title", "Program S3, EP1")
    .put("length", "3600")
    .put("segB", "CustomSegmentValueB")
    .put("segC", "CustomSegmentValueC")
    .put("crossId1", "Reference11")
    .put("crossId2", "Reference22")
    .put("vcid", "cXX")
    .put("isfullepisode", "yes")
    .put("airdate", "20161013 20:00:00")
//Custom Properties
.put("nol_c{number}", "p{Number},value");
 
 
//Ad Measurement:
JSONObject adMetadata = new JSONObject()
//SDK Metadata
    .put("type", "preroll")
    .put("assetid", "AD361-84413")
    .put("title", "MyAdName")
// Custom Properties
.put("nol_c{number}", "p{Number},value");

Output Parameters

Output Parameters (Return value) Description
Void