All Projects → bsm → Openrtb

bsm / Openrtb

Licence: other
OpenRTB protocol defintions for Go

Programming Languages

go
31211 projects - #10 most used programming language

OpenRTB

Build Status

OpenRTB structs and validations for Go.

Requirements

Requires Go 1.8+ for proper json.RawMessage marshaling.

Installation

To install, use go get:

go get github.com/bsm/openrtb/v3

Usage

package main

import (
  "log"
  "github.com/bsm/openrtb/v3"
)

func main() {
  file, err := os.Open("stored.json")
  if err != nil {
    log.Fatal(err)
  }
  defer file.Close()

  var req *openrtb.BidRequest
  if err := json.NewDecoder(file).Decode(&req); err != nil {
    log.Fatal(err)
  }

  log.Printf("%+v\n", req)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].