MediaMath / t1-python

Python SDK for MediaMath Platform APIs
https://developer.mediamath.com/
Apache License 2.0
18 stars 30 forks source link

Safely reinitialize strategy fields #99

Closed pswaminathan closed 7 years ago

pswaminathan commented 7 years ago

Related to #98. In some cases (e.g. strategy ID 1584681) the API doesn't return the old field impression_cap. Perhaps Adama uses some heuristics as well to see if new fields are being used. We need to use .get to re-initialize strategy fields in case they aren't returned.