Google Ad Manager: Activating Contextual Data

This page details an example of how Google Ad Manager can be used to pass contextual data.

In GAM, key-value pairs are passed using the “cust_params” parameter either manually or through the IMA SDK.

Certain characters (ex = or &) must be encoded within the “cust_params” section.

  • Please consult your specific IMA SDK documentation for specifics on add to add key-value pairs to the “cust_params” parameter.

Example of manual GAM ad request with “cust_params” populated with "iris_context" [Note: this request has been simplified and truncated]:

https://pubads.g.doubleclick.net/gampad/ads?iu=231779945/Ad_Unit_2&env=vp&gdfp_req=1&output=xml_vast4&sz=640x480&vid=6026440620001&cust_params=iris_context%3Dsport_basketball&sdkv=h.3.384.1&osd=2…

Example of manual GAM ad request with "cust_params" populated with "iris_context" [Note: this request has been simplified and truncated]:

https://pubads.g.doubleclick.net/gampad/ads?iu=231779945/Ad_Unit_2&env=vp&gdfp_req=1&output=xml_vast4&sz=640x480&vid=6026440620001&cust_params=iris_id%3Diris_480ajfo0810&sdkv=h.3.384.1&osd=2…