Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
/ openrtb-txtx Public archive

for google openrtb+adx proto / text format x jsonpb serialized format translator

Notifications You must be signed in to change notification settings

tomill/openrtb-txtx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openrtb-txtx

"protobuf text format" <=> json converter for Google OpenRTB + AdX Ext

Install

make install

Usage

openrtb-txtx [--in ...] [--out ...] [message name]

  --in string json or text
  --out string json or text or dump
  
  message name: default is "BidRequest"

Examples

json to "protobuf text format" (message type is BidRequest (default))

$ cat req.json | openrtb-txtx req

id:  "xxxxxxxxxxxxxxxxxxxxxx"
imp:  {
  id:  "1"
  banner:  {
    w: 300
    h: 250
    format:  {
      w: 300
      h: 250
    }

"protobuf text format" to json

$ cat req.bin | protoc -I pb/ --decode_raw | openrtb-txtx

{
  "id": "xxxxxxxxxxxxxxxxxxxxxx",
  "imp": [
    {
      "id": "1",
      "banner": {
        "w": 300,
        "h": 250,
        "format": [
          {
            "w": 300,
            "h": 250
          },

About

for google openrtb+adx proto / text format x jsonpb serialized format translator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published