GZIP Compression


GZIP (short for GNU zip) is a compression format that has found widespread adoption for bid requests and bid responses. This helps programmatic exchanges, as well as demand partners, save about 30% of network bandwidth.

Getting Started with GZIP

Go to http://www.gzip.org/ for more information.

Accepting Compressed Bid Requests

If you have been receiving uncompressed traffic and would like to switch to compressed traffic, please contact your Account Manager.

Compressed bid requests will contain Content-Encoding: gzip in the HTTP header to indicate compression being applied.

To test your handling of compressed bid requests, you can use this compressed bid request sample and execute the following command:

Sample file:

curl -v -H "Content-encoding: gzip" -X POST  -H 'Content-Type: application/json;charset=UTF-8' --data-binary  @bid-request.json.gz your_endpoint.com

You can choose to respond with non-compressed or compressed bid responses; the option of responding compressed is indicated by Accept-Encoding: gzip being included in the request’s HTTP header.

Also, if you’re sending us compressed responses, please include Content-Encoding: gzip in your response’s HTTP header to indicate the request’s compression.

Modified: May 6, 2020 at 5:14 pm