Skip to main content

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

Master Build Status

https://travis-ci.org/anossov/openrtb.svg?branch=master

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

Metadata

Release files for openrtb 0.2.0

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.2.0
File Size Uploaded Provenance Actions
openrtb-0.2.0.tar.gz 21.6 kB Without provenance Details for openrtb-0.2.0.tar.gz

Release files / openrtb-0.2.0.tar.gz

Download URL openrtb-0.2.0.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f94243339d1f611c8109399de354284cd7d6f2523bfb377b79bd9c024780049a
BLAKE2b-256 checksum
How to use checksums
85a8fa2173af6a37f5bcb13182ad8753b289c190e860b6f4d59ba1e3899f78ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for openrtb 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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