Skip to content

Releases: MediaMath/t1-python

New entity models and unit tests

28 Aug 18:12
Compare
Choose a tag to compare

New Entities:

  • Vendor
  • ... (all the vendor stuff)
  • Creative
  • CreativeApproval

Expanded unit tests—run nosetests in the repo root to run tests.

TargetDimension save fixes

28 Jul 20:55
Compare
Choose a tag to compare

Fixes errors in saving TargetDimensions, inconsistencies with deserializing target values, and properly sets environment.

Strategy Domains, Supplies Fix, Target Dimensions Fix

16 Jul 13:52
Compare
Choose a tag to compare
  • Deserialize pixel_target_expr after saving strategy supplies
  • Add save_domains to strategy to save domain restrictions
  • Add StrategyDomains model to retrieve strategy_domain_restrictions
  • Fix TargetDimensions initialization

Fixes #33
Fixes #32

Initial Public Release

09 Jul 18:31
Compare
Choose a tag to compare

First public release of T1 Python SDK! If you have been using the pre-releases, there have been some changes in include and api_base

Changes

  • Breaking change in include keyword argument of T1.get
  • Change in api_base semantics
  • Removal of base keyword argument
  • Removal of old sandbox environment

Include

T1.get takes a keyword argument include, to specify related entities to include in the response. Previously this just took either a string, or a list of traversable entities. (By traversable, I mean join-able. For instance, a traversable list of entities for advertiser is ['agency', 'organization'], because you join advertiser -> agency -> organization, not advertiser -> agency and advertiser -> organization. Now the logic is as follows:

  • include: str/list of relations:
    • string, e.g.
      • 'advertiser'
    • list of non-traversable elements, e.g.
      • ['vendor', 'concept']
    • list of list/strings of traversable elements, e.g.
      • [['advertiser', 'agency'], 'vendor']
      • [['advertiser', 'agency'], ['vendor', 'vendor_domains']]

API Base

api_base keyword argument of T1 is now just the domain (e.g. api_base='api.mediamath.com')

Base

base keyword argument of T1 is now removed. Use api_base with the domain instead.

Sandbox

Sandbox environment has been deprecated for a long time. Now it is removed.