Versions Compared

Key

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

...

Code Block
In [1]: import springserve

In [2]: tag = springserve.spotx_connects.new({"name": "SpotX Connect Tag Name Docs", "account_id": 391, "spotx_channel_id": 880933, "bid_floor_type": "static", "rate": 0.01})

In [3]: print tag.ok, tag.id
True, 894173

"bid_floor_type" could can be "static" or "dynamic".

...

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

Body (example)

{
    "supply_spotx_connects": [{"spotx_connect_id": 893715}]

}


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
        }
    ],
	...
}

...