Skip to main content

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

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

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

  • AdPosition

  • ConnectionType

  • ExpandableDirection

  • ContentContext

  • ContentDeliveryMethod

  • LocationType

  • DeviceType

  • APIFramework

  • VideoLinearity

  • VideoProtocol

  • VideoPlaybackMethod

  • VideoQuality

iab

Contains the IAB’s contextual category taxonomy:

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

Release files for openrtb 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openrtb 0.0.1
File Size Uploaded
openrtb-0.0.1.tar.gz 13.3 kB Details

Release files / openrtb-0.0.1.tar.gz

Download URL openrtb-0.0.1.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
15c2abc0fe4aae2cc83c58948dc4675c6f65ed4296749fc13c4b487409260b43
BLAKE2b-256 checksum
How to use checksums
562d7a7ed127e0de52db37fb94205cf5e2b333d0903259b005ab0280d2ff1cc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.0

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page