Back to Publisher API Reference


The FreeWheel implementation of this function requires including the freeWheelAdserverVideo module in your Prebid.js build.

Use this method to get targeting key-value pairs to be sent to the ad server.

  • pbjs.adServers.freewheel.getTargeting(options): returns key-value pair from the ad server.
    codes: [adUnitCode1],
    callback: function(err, targeting) {
        //pass targeting to player api

Argument Reference

The options object
Param Scope Type Description
codes Optional Array [adUnitCode1]
callback Required Function Callback function to execute when targeting data is back.

Back to Publisher API Reference