Skip to content

Instantly share code, notes, and snippets.

@dolzenko
Created October 9, 2012 13:27
Show Gist options
  • Select an option

  • Save dolzenko/3858808 to your computer and use it in GitHub Desktop.

Select an option

Save dolzenko/3858808 to your computer and use it in GitHub Desktop.
Parse Google BidRequest
import realtime_bidding_proto_pb2
msg = realtime_bidding_proto_pb2.BidRequest()
f = open('bid_request.bin', "rb")
msg.ParseFromString(f.read())
f.close()
print msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment