Link Search Menu Expand Document

PDF

Compressing Bid Requests

Demand Partners

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.

NOTE

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:

Content-Encoding: gzip
NOTE

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:

Accept-Encoding: gzip

When sending compressed responses, include the HTTP header below to indicate that it is compressed:

Content-Encoding: gzip