Table of Contents |
---|
...
"bid_floor_type" could 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" |
...
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
Body (example)
|
Response
Status code 200
Code Block |
---|
{ "id": 638465, "account_id": 391, "name": "AndreaTag TESTName Docs", "active": true, "rate": "0.0201", ... "spotx_connect_enabled": true, ... } |
Adding SpotX Connect to a Supply Tag
SDK
Code Block |
---|
In [1]: import springserve
In [2]: tag = springserve.supply_tags.get(638465)
In [3]: tag.supply_spotx_connects = [{'spotx_connect_id': 893715}]
In [4]: saved_tag = tag.save()
In [5]: print saved_tag.ok, saved_tag.id
True, 638465 |
REST API
PATCH /api/v0/supply_tags/<id>
Headers
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
}
],
...
} |