t1-python
t1-python copied to clipboard
Missing Margin Entity
A todo of missing entities in SDK
- Margin (campaign_margin_calc)
- ~~SupplySource~~
- ~~VendorContract~~
- ~~VendorDomain~~
- ~~VendorPixel~~
- ~~VendorPixelDomain~~
- ~~Vertical~~
- Audience segments
- Margin (campaign_margin_calc)
Vertical, Audience Segment and Supply Source were added by https://github.com/MediaMath/t1-python/pull/48
the campaign/:id/margins endpoint still returns the legacy xml->json converted format:
"prop": [
{
"value": "123456",
"name": "campaign_id"
},
{
"value": "2017-01-19T00:00:00",
"name": "margin_date"
},
{
"value": "85.0000",
"name": "margin_pct"
},
{
"value": "2017-01-25T00:43:26",
"name": "created_on"
},
{
"value": "2017-01-25T00:43:26",
"name": "updated_on"
}
],
"name": "campaign Margin 2017-01-19",
"id": 1542715,
"type": "campaign_margins_calc"
}
we'll need this to be consistent with the rest of the json responses before we can add support.
Related to CAW-3810 (internal)