Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
    "id":57,
    "name":"TEST API DOCS",
    "value":"test_api"
}

Add Keys to Supply Tag

SDK

Code Block
In [1]: tag = springserve.supply_tags.get(28852)

In [2]: tag.key_ids
Out [2]: []

In [4]: tag.key_ids.append(27)

In [5]: saved = tag.save()

In [6]: saved.ok
Out [6]: True

API

PUT /api/v0/supply_tags/<id>

Headers

Code Block
Content-Type application/json
Authorization "yourAuthToken"

Body (example)

{
    "key_ids": 27
}


Response

Status code 200


Code Block
{
  "vast_endpoint_url": "http://myvastendpoint.com/123", 
  "demand_type": 2, 
  "impression_budget": -1, 
  "rate": "10.0", 
  "domain_targeting": "None", 
  "id": 30424, 
  "domain_list_ids": [], 
  "country_codes": [], 
  "start_date": null, 
  "account_id": 1, 
  "end_date": null, 
  "key_ids": 27,
  "demand_code": null, 
  "active": true, 
  "country_targeting": "None", 
  "demand_tag_type": 2, 
  "name": "I want to change the name", 
  "request_budget": -1, 
  "player_size_targeting": "All", 
  "allowed_player_sizes": [
    "s", 
    "m", 
    "l", 
    "u"
  ], 
  "timeout": 20000, 
  "demand_group_id": null, 
  "demand_partner_id": null
}