Sweden SDK Metadata: Difference between revisions

From Engineering Client Portal

(→‎Ad Metadata: isprogrammatic is optional - per new change request from MMS/Mats)
 
(66 intermediate revisions by 3 users not shown)
Line 8: Line 8:
<br>
<br>
'''Section 2''' focuses on the Ad metadata.
'''Section 2''' focuses on the Ad metadata.
<br><br>
'''Note:''' All metadata values should be passed as UTF-8 strings.<br>


== Content Metadata==
== Content Metadata==
Line 15: Line 18:
! Nielsen Key !! MMS Attribute Name, MMS Field Name !! Description !! Values !! Required
! Nielsen Key !! MMS Attribute Name, MMS Field Name !! Description !! Values !! Required
|-
|-
| type ||  || type of asset || "content" || yes
| type ||  || type of asset || "content" ||
|-
|-
| assetid || Content ID, mms_tid || unique ID assigned to an asset within the same media house. || For content on simulcast channels, this has a standard format: simulcast_channelnumber ('''Example''' for Channel TV4, the expected value is: simulcast_29).<br>
| userid || || the user login ID. Used by MMS reach model. ''The uploaded value needs to be hashed with SHA512''. This is the user login ID on player. We prefer a numeric value. (please '''do not''' use user email address)|| "fbd1a7a7d672a5fcf5cf5c55d8d9d0abbe3a4e0fa..." || required if login feature
 
<small>A complete list of channel reference libraries with channel numbers is on the  [https://mms.se/?page_id=108 MMS homepage]</small>
 
<small>For VoD, it does not need to follow the simulcast_channelnumber format.</small>
 
<small>Length limit: 20 characters. [https://engineeringportal.nielsen.com/docs/Special_Characters No special characters]</small>
|| yes <br>


|-
| assetid || Content ID, mms_tid || unique ID assigned to an asset within the same media house. (max: 20 characters).<br><br> In addition to this metadata for content needs to be reported to MMS via TitleService. Contact online@mms.se for more information. ||
<small>For VoD use internal format. [https://engineeringportal.nielsen.com/docs/Special_Characters No special characters]</small><br>
<small>For content on simulcast channels, this has a standard format: simulcast_channelnumber ('''Example''' for Channel TV4, the expected value is: simulcast_29).<br></small>
<small>A complete list of channel reference libraries with channel numbers is on the  [https://mms.se/for-vara-kunder/teknisk-dokumentation-tv/referensbandade-kanaler/ MMS homepage] tab "referensbandade kanaler".</small>
|| ✓ <br>
|-
|-
| length || Clip Length, ns_st_cl || length of content in seconds || Length of content in seconds.  
| length || Clip Length, ns_st_cl || length of content in seconds || Length of content in seconds.  
* <small>for 24/7 live stream, 86400</small>
* <small>for event-Live streams, the planned length</small>
* <small>for VoD, video length</small>
* <small>for VoD, video length</small>
  || yes
* <small>for event-Live stream, the planned length.</small>
* <small>for simulcast and 24/7 live stream, 86400</small>
  ||
|-
|-
| client_passthrough_parameters || MMS Values, mms_values || pass-through parameters || For clients that provide DAI (dynamic ad insertion) service, this has a standard format: origcode=channelnumber.
| clientpassparam || MMS Values, mms_values || pass-through parameters || For clients that provide DAI (dynamic ad insertion) service, this has a standard format: origcode=channelnumber.
<small>'''Example:''' origcode=29
<small>'''Example:''' origcode=29
See the complete list of channel reference library with the channel number on [https://mms.se/?page_id=108 MMS homepage]</small>  
See the complete list of channel reference library with the channel number on [https://mms.se/for-vara-kunder/teknisk-dokumentation-tv/referensbandade-kanaler/ MMS homepage] tab "referensbandade kanaler".</small> <br> <small>Please use string, JSON format is not accepted. </small><br>
|| mandatory for clients that have DAI service (Telia, Telenor, Canal-digital, Comhem, Boxer, Sappa, Discovery, Cmore)
<small>Length limit: 250 characters. A longer string may be truncated due to URL length limitation.</small>
|| required for clients that have DAI service (Telia, Telenor, Allente, Comhem, Boxer, Sappa, Discovery, Cmore)
|-
|-
| program || Program Name, ns_st_pr || program name || custom '''example:''' leif-och-billy || yes
| program || Program Name, ns_st_pr || program name || '''custom''' '''example:''' leif-och-billy <br>
<small>Leave blank for simulcast. <br>'''Please restrain from using special characters like "/" or ";"'''</small>
||
|-
|-
| title || Episode Name, ns_st_ep || episode name || custom '''example:''' en-ny-tjej-i-byn || yes
| title || Episode Name, ns_st_ep || episode name || '''custom''' '''example:''' en-ny-tjej-i-byn <br>
<small>Leave blank for simulcast. <br>'''Please restrain from using special characters like "/" or ";"'''</small>
||
|-
|-
| title_playlist || Title Playlist, ns_st_pl || playlist reference as a string || string value with playlist name for '''example:''' barn ||  
| playlisttitle || Title Playlist, ns_st_pl || playlist reference as a string || string value with playlist name for '''example:''' barn ||  
|-
|-
| mms_premium || MMS Premium, mms_premium || identify premium level via yes or no || "yes" or "no"  || yes
| ispremiumcontent || MMS Premium, mms_premium || identify premium level via yes or no || "yes" or "no"  ||
|-
|-
| is_auto_play || Auto Start, mms_auto || identify if autoplay is enabled on the video || "yes" or "no"  || yes
| isautoplay || Auto Start, mms_auto || identify if autoplay is enabled on the video || "yes" or "no"  ||
|-
|-
| mms_window || MMS Window, mms_windowsize || player window size || '''example:''' 1920x1200  ||  
| plugv || Player Version, ns_st_mv || player version. increment by 1 for each new version. || alphanumeric '''example:''' 1.0.1 ||
|-
|-
| plugv || Player Version, ns_st_mv || player version. increment by 1 for each new version. || alphanumeric '''example:''' 1.0.1 || yes
| playerv || Mediaplayer, ns_st_mp || player identifier || alphanumeric '''example:''' HTML5, JW Player, Sonic  ||
|-
| playerv || Mediaplayer, ns_st_mp || player identifier || alphanumeric '''example:''' HTML5, JW Player, Sonic  || yes
|}
|}


Line 64: Line 69:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
var contentMetadataObject = {
var contentMetadataObject = {
   "type": "content",  
   type: "content",  
   "assetid": "simulcast_29",
   userid: "fbd1a7a7d672a5fcf5cf5c55d8d9d0abbe3a4e0fa…",
   "length": "3359",
  assetid: "simulcast_29",
   "client_passthrough_parameters": "origcode=29"
   length: "3359", //seconds
   "program": "leif-och-billy",
   clientpassparam: "origcode=29",
   "title": "en-ny-tjej-i-byn",
   program: "leif-och-billy",
   "title_playlist": "barn",
   title: "en-ny-tjej-i-byn",
   "mms_premium": "yes",
   playlisttitle: "barn",
   "is_auto_play": "yes",
   ispremiumcontent: "yes",
   "mms_window": "1900x1290",
   isautoplay: "yes",
  "plugv": "1.0.1",
   plugv: "1.0.1",
   "playerv": "Sonic"
   playerv: "Sonic"
 
};
};
</syntaxhighlight>
</syntaxhighlight>
Line 86: Line 90:
! Nielsen Key !! MMS Attribute Name, MMS Field Name !! Description !! Values !! Required  
! Nielsen Key !! MMS Attribute Name, MMS Field Name !! Description !! Values !! Required  
|-
|-
| type || Ad Type, ns_st_ad || type of ad || "preroll", "midroll", "postroll", "ad" if specific ad type cannot be identified. || yes
| type || Ad Type, ns_st_ad || type of ad || "preroll", "midroll", "postroll", "ad" if specific ad type cannot be identified. ||
|-
|-
| assetid || Content ID, mms_tid || unique ID assigned to asset within same mediahouse. || For content on simulcast channels, this has a standard format: simulcast_channelnumber ('''Example''' for Channel TV4, the expected value is: simulcast_29).<br>
| assetid || Film Code, mms_customadid || custom Ad ID || Film code/Copy code.
 
<small>'''Custom examples''': S1MYME202B, 51TRER1001, H1KYLE3032, E1UMBR1001</small>
<small>A complete list of channel reference libraries with channel numbers is on the  [https://mms.se/?page_id=108 MMS homepage]</small>


<small>For VoD, it does not need to follow the simulcast_channelnumber format.</small>
<small>In case of no Film Code is available, use the string "empty".</small>


<small>Length limit: 20 characters. [https://engineeringportal.nielsen.com/docs/Special_Characters No special characters]</small>
<small>For programmatic ads that you are sending "programmatic" as Film Code today, use "programmatic_{current UTC time in epoch form}".</small>
|| yes
||
|-
| length || Clip Length, ns_st_cl || length of content in seconds || Length of ad in seconds. || yes
|-
| client_passthrough_parameters || MMS Values, mms_values || pass-through parameters || For clients that provide DAI (dynamic ad insertion) service, this has a standard format: origcode=channelnumber.
<small>'''Example:''' origcode=29
See the complete list of channel reference library with the channel number on [https://mms.se/?page_id=108 MMS homepage]</small>  
|| mandatory for clients that have DAI service (Telia, Telenor, Canal-digital, Comhem, Boxer, Sappa, Discovery, Cmore)
|-
|-
| program || Program Name, ns_st_pr || program name || custom '''example:''' leif-och-billy || yes
| length || Clip Length, ns_st_cl || length of ad in seconds || Length of ad in seconds. ||
|-
|-
| title || Episode Name, ns_st_ep || episode name || custom '''example:''' en-ny-tjej-i-byn || yes
| isprogrammatic || Programmatic, mms_programmatic || identify if the ad is bought prommatic. || "yes" or "no"  ||  
|-
|-
| is_auto_play || Auto Start, mms_auto || identify if autoplay is enabled on the video || "yes" or "no" || yes
| adplatformorigin || MMS Origin, mms_origin || identify where an ad is originated. It is used when isprogrammatic=yes or isthirdpartyad=yes. || custom '''examples:''' Smartclip, YuMe
  ||  
|-
|-
| mms_window || MMS Window, mms_windowsize || player window size || '''example:''' 1920x1200  ||
| adidx || Position in Break, ns_st_an || placement in ad break. It is passed by ad servers. || Custom with the following format:
|-
| plugv || Player Version, ns_st_mv || player version. increment by 1 for each new version. || alphanumeric '''example:''' 1.0.1 || yes
|-
| playerv || Mediaplayer, ns_st_mp || player identifier || alphanumeric '''example:''' HTML5, JW Player, Sonic  || yes
|-
| film_code || Film Code, mms_customadid || custom Ad ID || custom '''examples:''' S1MYME202B, 51TRER1001, H1KYLE3032, E1UMBR1001
|| yes
|-
| is_programmatic || Programmatic, mms_programmatic || identify if the ad is bought prommatic. || "yes" or "no"  || yes
|-
| mms_thirdparty || MMS Thirdparty, mms_thirdparty || identify if the ad is from third party ad server || "yes" or "no"  || yes
|-
| ad_server_name || MMS Origin, mms_origin || ad server name || custom '''examples:''' Smartclip, YuMe
|| yes
|-
| break_position || Position in Break, ns_st_an || placement in ad break. It is passed by ad servers. || Custom with the following format:
<small>{ad placement}/{total number of ads in an ad break}</small><br>
<small>{ad placement}/{total number of ads in an ad break}</small><br>


<small>'''Example:''' 2/5, the second ad in an ad break with 5 ads.</small>  
<small>'''Example:''' 2/5, the second ad in an ad break with 5 ads.</small>  
|| yes
||
|-
| ad_campaign || MMS Ad campaign ID, campaign_id || campaign ID of an Ad || custom string value containing in general letters and digits  ||
|}
|}


Line 137: Line 120:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
var prerollMetadataObject = {
var prerollMetadataObject = {
   "type": "preroll",  
   type: "preroll",
   "assetid": "simulcast_29",
   assetid: "E1UMBR1001",  
   "length": "3359",
   length: "30", //seconds
  "client_passthrough_parameters": "origcode=29"
   isprogrammatic: "yes",
  "program": "leif-och-billy",
   adplatformorigin: "YuMe",
  "title": "en-ny-tjej-i-byn",
   adidx: "1/5"
  "is_auto_play": "yes",
  "mms_premium": "yes",
  "mms_window": "1900x1290",
  "plugv": "1.0.1",
  "playerv": "Sonic",
  "film_code": "E1UMBR1001",
  "is_programmatic": "yes",
   "mms_thirdparty": "yes",
   "ad_server_name": "YuMe",
   "break_position": "1/5"
};
};
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 08:47, 2 July 2024

Engineering Portal / Digital / International DCR / Sweden SDK Metadata

Digital Metadata

Digital Metadata can pass through key values using the Nielsen reserved keys. The keys and values are listed by the product below.
Section 1 focuses on the content metadata
Section 2 focuses on the Ad metadata.

Note: All metadata values should be passed as UTF-8 strings.

Content Metadata

Nielsen Key MMS Attribute Name, MMS Field Name Description Values Required
type type of asset "content"
userid the user login ID. Used by MMS reach model. The uploaded value needs to be hashed with SHA512. This is the user login ID on player. We prefer a numeric value. (please do not use user email address) "fbd1a7a7d672a5fcf5cf5c55d8d9d0abbe3a4e0fa..." required if login feature
assetid Content ID, mms_tid unique ID assigned to an asset within the same media house. (max: 20 characters).

In addition to this metadata for content needs to be reported to MMS via TitleService. Contact online@mms.se for more information.

For VoD use internal format. No special characters
For content on simulcast channels, this has a standard format: simulcast_channelnumber (Example for Channel TV4, the expected value is: simulcast_29).
A complete list of channel reference libraries with channel numbers is on the MMS homepage tab "referensbandade kanaler".


length Clip Length, ns_st_cl length of content in seconds Length of content in seconds.
  • for VoD, video length
  • for event-Live stream, the planned length.
  • for simulcast and 24/7 live stream, 86400
clientpassparam MMS Values, mms_values pass-through parameters For clients that provide DAI (dynamic ad insertion) service, this has a standard format: origcode=channelnumber.

Example: origcode=29 See the complete list of channel reference library with the channel number on MMS homepage tab "referensbandade kanaler".
Please use string, JSON format is not accepted.
Length limit: 250 characters. A longer string may be truncated due to URL length limitation.

required for clients that have DAI service (Telia, Telenor, Allente, Comhem, Boxer, Sappa, Discovery, Cmore)
program Program Name, ns_st_pr program name custom example: leif-och-billy

Leave blank for simulcast.
Please restrain from using special characters like "/" or ";"

title Episode Name, ns_st_ep episode name custom example: en-ny-tjej-i-byn

Leave blank for simulcast.
Please restrain from using special characters like "/" or ";"

playlisttitle Title Playlist, ns_st_pl playlist reference as a string string value with playlist name for example: barn
ispremiumcontent MMS Premium, mms_premium identify premium level via yes or no "yes" or "no"
isautoplay Auto Start, mms_auto identify if autoplay is enabled on the video "yes" or "no"
plugv Player Version, ns_st_mv player version. increment by 1 for each new version. alphanumeric example: 1.0.1
playerv Mediaplayer, ns_st_mp player identifier alphanumeric example: HTML5, JW Player, Sonic




Example of metadata object for content:

var contentMetadataObject = {
  type: "content", 
  userid: "fbd1a7a7d672a5fcf5cf5c55d8d9d0abbe3a4e0fa…", 
  assetid: "simulcast_29",
  length: "3359", //seconds
  clientpassparam: "origcode=29",
  program: "leif-och-billy",
  title: "en-ny-tjej-i-byn",
  playlisttitle: "barn",
  ispremiumcontent: "yes",
  isautoplay: "yes",
  plugv: "1.0.1",
  playerv: "Sonic"
};

Ad Metadata

Nielsen Key MMS Attribute Name, MMS Field Name Description Values Required
type Ad Type, ns_st_ad type of ad "preroll", "midroll", "postroll", "ad" if specific ad type cannot be identified.
assetid Film Code, mms_customadid custom Ad ID Film code/Copy code.

Custom examples: S1MYME202B, 51TRER1001, H1KYLE3032, E1UMBR1001

In case of no Film Code is available, use the string "empty".

For programmatic ads that you are sending "programmatic" as Film Code today, use "programmatic_{current UTC time in epoch form}".

length Clip Length, ns_st_cl length of ad in seconds Length of ad in seconds.
isprogrammatic Programmatic, mms_programmatic identify if the ad is bought prommatic. "yes" or "no"
adplatformorigin MMS Origin, mms_origin identify where an ad is originated. It is used when isprogrammatic=yes or isthirdpartyad=yes. custom examples: Smartclip, YuMe
adidx Position in Break, ns_st_an placement in ad break. It is passed by ad servers. Custom with the following format:

{ad placement}/{total number of ads in an ad break}

Example: 2/5, the second ad in an ad break with 5 ads.

ad_campaign MMS Ad campaign ID, campaign_id campaign ID of an Ad custom string value containing in general letters and digits

Example of metadata object for Ad:

var prerollMetadataObject = {
  type: "preroll",
  assetid: "E1UMBR1001", 
  length: "30", //seconds
  isprogrammatic: "yes",
  adplatformorigin: "YuMe",
  adidx: "1/5"
};