Create Demand

Creates a new Demand 

POST /api/demand

Request
Body Parameters

Attribute Name

Summary

Type

Required

Possible Values

Default

name

Demand Name

String

Yes

string

NA

url

Demand URL

String

Yes

valid url string

NA

cpm

Demand CPM

Float

Yes

float

NA
user_mvrVAST Request Limit per DemandIntegerNofrom 1 to 5 (highest)5
user_typeJS/Flash Preference for DemandIntegerNo

0 - auto

1 - use flash by default

2 - use JS by default

3- use flash only

4- use js only

0

active

Demand is active

Boolean

No

0/1

0

is_desktop

Is desktop tag

Boolean

No

0/1

0

is_mobile_web

Is mobile web tag

Boolean

No

0/1

0

is_mobile_app

Is mobile app tag

Boolean

No

0/1

0
is_ctv

Is CTV tag

Boolean

No

0/1

0

vast_type

Demand type

Integer

No

0 - Vast

0

vast_players

Assigned Supplies

array of supplies

No

 null
Response 
Attribute Name
Summary
Possible Values
vastIdDemand ID 
nameDemand Name 
urlDemand URL 
cpmDemand CPM 
activeDemand is active 
user_mvrVAST Request Limit per Demandfrom 1 to 5 (highest)
user_typeJS/Flash Preference for Demand

0 - auto

1 - use flash by default

2 - use JS by default

3- use flash only

4- use js only

parentNetworkIdDemand partner network Id (for CedatoX Demands only) 
domain_list_typeList restriction type

1 - white list

2- black list

 
vast_typeDemand type 
is_mobile_webIs mobile web tag 
is_mobile_appIs mobile app tag 
is_desktopIs desktop tag 
partnerGrouping Label 
createdCreate timstamp 
updatedUpdate timestamp 
useDefaultCPMuse Default CPM or Assigned player CPM 
domain_listsDomain Lists Objectsee in get demand
vast_playersAssigned Supplies Objectsee in get demand
vast_cappingCapping Objectsee in get demand
callbacksCallbacks Objectsee in get demand
targetingTargeting Objectsee in get demand

Sample Request

curl -X POST \
https://api.cedato.com/api/demand/ \
-H 'accept: application/json' \
-H 'api-version: 1' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'authorization: Bearer '

Sample Response

{
    "status""OK",
    "data": {
        "demand": {
            "vastId""123456",
            "name""my new demand",
            "url""http://example.com",
            "cpm""5",
            "active"true,
            "user_mvr"1,
            "user_type""0",
            "parentNetworkId"null,
            "domain_list_type""0",
            "vast_type""0",
            "is_mobile_web""1",
            "is_mobile_app""1",
            "partner""",
            "is_desktop""1",
            "created""2017-10-08 09:47:23",
            "updated""2017-10-08 09:47:23",
            "domain_lists": [],
            "vast_players": [],
            "vast_capping": [],
            "callbacks": [],
            "targeting": [],
            "useDefaultCPM"true
        }
    }
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article