Releases: MediaMath/t1-python
New entity models and unit tests
New Entities:
- Vendor
- ... (all the vendor stuff)
- Creative
- CreativeApproval
Expanded unit tests—run nosetests
in the repo root to run tests.
TargetDimension save fixes
Fixes errors in saving TargetDimensions, inconsistencies with deserializing target values, and properly sets environment.
Strategy Domains, Supplies Fix, Target Dimensions Fix
Initial Public Release
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 ofT1.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']]
- string, e.g.
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.