Compressing Bid Requests
Last updated on January 16, 2019
OpenX supports bid request and response compression via GZIP to reduce network bandwidth usage for demand partners. Partners who have enabled this feature have seen a 30-40% reduction in bandwidth utilization. To enable this feature or for more information, please contact your Platform Development Manager.
Compression can also result in increased CPU processing.
Receiving and Accepting Compressed Bid Requests
By default, as a demand partner, you receive non-compressed traffic. To receive compressed bid requests, please contact your Platform Development Manager. Once enabled, this change applies to all traffic OpenX sends you.
Compressed requests contain an HTTP header of:
Once this setting is enabled, monitor your systems to confirm that they are properly ingesting and decompressing requests and that bidding/spend behavior is not impacted.
Sending Compressed Bid Responses
You can respond to any OpenRTB bid request with either a non-compressed response or a compressed response. OpenX sends the
Accept-Encoding: gzip HTTP header to indicate that it accepts compressed bid responses for all OpenRTB bid requests.
Adjust your bidder’s HTTP configuration to ingest this header and respond accordingly:
When sending compressed responses, include the HTTP header below to indicate that it is compressed: