Update Demand

Adi Heymann -

Update Demand

PATCH /api/demand/<DemandID>

Request
Body Parameters
Attribute Name
Summary
Possible Values
name Demand Name string
cpm Demand CPM float
url Demand URL string
is_mobile_web Is mobile web tag 0/1
is_mobile_app Is mobile app tag 0/1
is_desktop Is desktop tag 0/1
active Is Demand active 0/1
user_mvr VAST Requests Limit from 1 to 5 (highest)
user_type

 

JS/Flash Preference for Demand 

0 - auto

1 - use flash by default

2 - use JS by default

3- use flash only

4- use js only

domain_list_type List restriction type 

1 - white list

2- black list

 

 

Response
Attribute Name
Summary
Possible Values
vastId Demand Id int
name Demand Name string
cpm Demand CPM float
url Demand URL string
is_mobile_web Is mobile web tag 0/1
is_mobile_app Is mobile app tag 0/1
is_desktop Is desktop tag 0/1
active Is Demand active 0/1
user_mvr VAST Requests Limit from 1 to 5 (highest)
vast_type Demand Type

0 - Vast

1 - CedatoX

Sample Request

curl -X PATCH \
https://api.cedato.com/api/demand/123456 \
-H 'accept: application/json' \
-H 'api-version: 1' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'authorization: Bearer <TOKEN>'
 
domain_list_type=1&name=MyDemand

Sample Response

{
    "status""OK",
    "data": {
        "demand": {
            "vastId""123456",
            "name""MyDemand",
            "cpm""10",
            "url""http://www.exampleURL2.com/",
            "is_mobile_web""1",
            "is_mobile_app""1",
            "is_desktop""0",
            "active""1",
            "user_type""1",
            "user_mvr"0,
            "vast_type""0",
            "domain_list_type""1"
        }
    }
}
Have more questions? Submit a request

0 Comments

Article is closed for comments.