Send Discovery Impressions for Android Native

Call the sendImpression method when a recommended video is accessed. This will send Discovery feedback.

Table 1. sendImpression
Parameter Description
options Input parameter of type DiscoveryOptions. An instance of DiscoveryOptions encapsulates a Type, a limit long integer of how many Discovery results are desired, and a timeout (in milliseconds) long integer for http connections. The Type is an enum that can be set to either SimilarAssets, Popular, or Momentum. By default, DiscoveryOptions are instantiated with SimilarAssets.
bucketInfo Input parameter of type String. The bucket info ID.
pcode Input parameter of type String. The pcode.
deviceId Input parameter of type String. The device ID.
parameters Input parameter of type Map<String, String>. The parameters as key-value pairs in an associative array, where the keys are strings and the values are strings. For a detailed list and examples of parameters, please refer to the Summary of Ooyala Discovery REST API Requests.
callback Input parameter of type Callback. The Callback interface contains a method which takes output parameters results and error. This callback method handles Discovery results. The callback might not be called on the main thread.

This method is static.

Was this article helpful?