GithubHelp home page GithubHelp logo

nkpz / openrtb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anossov/openrtb

0.0 2.0 0.0 114 KB

A set of Python classes implementing OpenRTB 2.2 and OpenRTB Mobile specifications

License: BSD 2-Clause "Simplified" License

Python 100.00%

openrtb's Introduction

This package contains classes mirroring the OpenRTB 2.2 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
  • 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.