Skip to content
/ openrtb Public
forked from rtbpanda/openrtb

OpenRTB protocol defintions for Go

License

Notifications You must be signed in to change notification settings

sklyar/openrtb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1edcd29 · Apr 14, 2020
Apr 14, 2020
Oct 28, 2019
Aug 25, 2015
Oct 28, 2019
Oct 28, 2019
Oct 26, 2016
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Sep 15, 2016
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Apr 14, 2020
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Apr 14, 2020
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Apr 14, 2020
Nov 2, 2017
Oct 28, 2019
Apr 14, 2020
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Oct 28, 2019
Jun 24, 2019
Jun 24, 2019
Nov 1, 2019
Nov 1, 2019

Repository files navigation

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)
}

About

OpenRTB protocol defintions for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.9%
  • Makefile 0.1%