Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A set of classes implementing OpenRTB 2.2 and OpenRTB Mobile specifications

Project Description

This package contains classes mirroring the OpenRTB 2.2 and OpenRTB Mobile 1.0 protocol schemas.

Master Build Status

Modules

  • All classes have a deserialize method that creates the appropiate objects from a Python dict (e.g. decoded from JSON).
  • All objects have a serialize method that serializes the object back to a Python dict.

request

Contains the BidRequest class and the bid request subobject classes:

  • Impression
  • Banner
  • Video
  • Site
  • App
  • Publisher
  • Device
  • User
  • Geo
  • Content
  • Data
  • Segment
  • Producer

response

Contains the BidResponse class and the bid response subobject classes, SeatBid and Bid.

mobile

Contains the OpenRTB Mobile BidRequest classes and its subobjects:

  • Impression
  • Device
  • User
  • Site
  • App
  • Restrictions
  • Regulations
  • PMP
  • Deal

Also contains the OpenRTB20Adapter class that can be used to deserialize an OpenRTB Mobile bid request into OpenRTB 2.0 objects.

macros

Contains the substitution function that performs substitution macro replacement in a string.

  • substitution(BidRequest, BidResponse, auction_price, string_with_macros) -> string with expanded macros

constants

Contains enum-like wrappers around the integer constants used in bid requests (see chapter 6 of the OpenRTB 2.0 spec):

  • AuctionType
  • BannerType
  • CreativeAttribute
  • CompanionType
  • AdPosition
  • ConnectionType
  • ExpandableDirection
  • ContentContext
  • ContentDeliveryMethod
  • LocationType
  • DeviceType
  • APIFramework
  • VideoLinearity
  • VideoProtocol
  • VideoPlaybackMethod
  • VideoQuality
  • QAGMediaRating
  • NoBidReason

iab

Contains the IAB’s contextual category taxonomy:

  • CATEGORIES — a list of (category_name, list_of_subcategories) tuples
Release History

Release History

This version
History Node

0.2.0

History Node

0.1.5

History Node

0.1.4

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
openrtb-0.2.0.tar.gz (21.6 kB) Copy SHA256 Checksum SHA256 Source Feb 2, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting