Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview: The Context Script gives publishers the ability to retrieve context and IAB category information on a given asset. This is mean to be used as a part of your ad workflow to send context data through your ad server. This documentation will walk through how clients using the Adaptive Plugin can add the Context Script and retrieve context or IAB category for the initial asset and IRIS.TV recommendations.

See example implementation page here: https://ovp.iris.tv/demos/context/iris-context-api-autoplay.html

Prerequisites

Insert excerpt
Context Script
Context Script
nopaneltrue

...

Code Block
{
  platform_id: '6026440620001',
  iabcategories: ["IAB17-26"],
  context: ["e883d22ce29c85f9e910281d2a410c5bad77a098"]
} 

...

Code Block
window.addEventListener('iris_watch', function (e) {
 IrisContext.getRecommendationsInfo().then(function(data) {
   // <data> will contain the information in the form of:
   /* {
       <platform_id>: { context: <value>, iabcategories: <vlaue><value> },
       <platform_id>: { context: <value>, categories: <value> },
      }
    */
 });
});

...