...
The order of operations for retrieving the context or category information should be as follows:
Call the IRIS.TV Context API call to retrieve context and category information on contextual segments for the next asset in the queue.
Add the context segment to the pre-roll ad tag for that video asset.
...