...
Prerequisite: Your ad server must support passing custom key-value pairs that flow through the demand chain using macros
Create a new custom macro called “context”
Pass the “context” values from the IRIS.TV Context API as comma-separated Into values into the “context” key
In GAM, custom key-value pairs are passed using the “cust_params” parameter either manually or through the IMA SDK
To manually add “cust_params” to your GAM calls please consult the following documentation provided by Google: https://support.google.com/admanager/answer/1080597 [Note: it is required to encode certain characters within the “cust_params” section]
To add “cust_params” through the IMA SDK, please reference the documentation specific to the version of the IMA SDK you are working with
Example of manual GAM ad request with “cust_params” populated [Note: this request has been simplified and truncated]:
...