Table of Contents |
---|
...
"bid_floor_type" can be "static" or "dynamic".
REST API
POST /api/v0/spotx_connects
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Code Block |
---|
In [1]: tag = springserve.spotx_connects.get(894173) In [2]: print tag.name "SpotX Connect Tag Name Docs" |
REST API
GET /api/v0/spotx_connects/<id>
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Code Block |
---|
In [1]: tag = springserve.spotx_connects.get(30424) In [2]: tag.name = "SpotX Connect Tag Name Docs (new name)" In [3]: changed = tag.save() In [4]: changed.ok Out [4]: True In [5]: print changed.name "SpotX Connect Tag Name Docs (new name)" |
REST API
PUT /api/v0/spotx_connects/<id>
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Code Block |
---|
In [1]: tag = springserve.spotx_connects.get(894173) ln [2]: dupe = tag.duplicate() ln [3]: dupe.ok Out [3]: True In [4]: print dupe.id 893716 |
REST API
GET /api/v0/spotx_connects/<id>/duplicate
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Changing Tier to a Supply Tag with SpotX Connect
By default, when a SpotX Connection is added to a Supply Tag, its Tier is set to 5.
The Tier can be accessed through a "master id" in demand_tag_priorities, that will be the same across each account.
SDK
Code Block |
---|
In [1]: import springserve In [2]: tag = springserve.supply_tags.get(638465) In [3]: tag.demand_tag_priorities[0]["tier"] = 3 In [4]: saved_tag = tag.save() In [5]: print saved_tag.ok, saved_tag.demand_tag_priorities[0]["tier"]) True, 3 |
...
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
Body (example)
|
Response
Status code 200
Code Block |
---|
{ "id": 638465, "account_id": 391, "name": "Tag Name Docs", "active": true, "rate": "0.01", ... "spotx_connect_enabled": true, "supply_spotx_connects": [ { "spotx_connect_id": 893715 } ], "demand_tag_priorities": [{"demand_tag_id": 880921, "priority": 1, "tier": 3, "locked": False, "ratio": None, "slot_number": None, "slot_order": None}] ... } |
...