GitPedia

Openrtb

OpenRTB protocol defintions for Go

From bsm·Updated March 24, 2026·View on GitHub·
·Archived

**openrtb** is a OpenRTB protocol defintions for Go The project is written primarily in Go, distributed under the Other license, first published in 2013. Key topics include: adtech, go, openrtb, rtb.

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:

shell
go get github.com/bsm/openrtb/v3

Usage

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

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from bsm/openrtb via the GitHub API.Last fetched: 6/28/2026