Create Zone
Copied
https://api.ocamba.com/v2/adex/zones
Copied
https://api.ocamba.com/v2/adex/zones
Creates a new Zone object
Name
Descriptionaccount_idstringrequired
A unique account identifier generated by the Ocamba platform.Example: 10073337
bid_floorfloat
Minimum value is 0, maximum is 100. Required if bid_floor_priority is 1.Example: 32.5
bid_floor_prioritynumber (integer)
Priority over bid floor in the request.Possible values: 0 | 1
campaign_prioritystringrequired
Campaign priority.Example: compete
Possible values: local | bacfill | unfilled | compete
Default: compete
campaign_search_algostringrequired
Campaign algorithm to choose a campaigns competing method.Example: round-robin
Possible values: round-robin | multi-armed-bandit | internal-sort-by-bid
Default: round-robin
cpv_viewabilitynumber (integer)
cpv_viewability is taken into account only if pricing model is set to cpv (Cost-Per-View).Example: 15
descriptionstring
A more detailed description of the Zone.Example: This is my first zone.
external_expl_ratenumber (integer)required
The approximate rate of total bidRequests to chosen algorithm. Only external campaigns are affected and rate value is expressed in percentage. Not usable on round-robin. Minimum value: 0, maximum value: 100.Example: 15
Default: 5
Filters object.
Zone Filters
Name
Descriptionflash_filternumber (integer)
Passthrough/block click and report as spam if requested caller browser does not support Flash.Possible values: 0 | 1
ip_matchnumber (integer)
Passthrough/block click and report as spam if received IP does not match the requested one.Example: 1
Possible values: 0 | 1
java_script_filternumber (integer)
Passthrough/block click and report as spam if requested caller browser does not support JavaScript.Possible values: 0 | 1
max_click_delaynumber (integer)
Maximum time to allow click on the link to be valid from time link was generated, if delays are matched click is considered spam. Maximum value is 86400000.Example: 86400000
min_click_delaynumber (integer)
Minimum time to allow click to be valid from the time the link was generated if the delay is matched click is considered spam. Maximum value is 100000.Example: 1500
non_empty_referernumber (integer)
Passthrough/block click and report as spam if received HTTP referrer is empty.Possible values: 0 | 1
policystring
Filter click policy.Example: block
Possible values: block | passthrough
referrer_matchnumber (integer)
Passthrough/block click and report as spam if received referrer does not match the requested one.Possible values: 0 | 1
user_agent_matchnumber (integer)
Passthrough/block click and report as spam if the received HTTP user agent does not match requested.Possible values: 0 | 1
valid_user_agentnumber (integer)
Passthrough/block click and report as spam if the received HTTP user agent is not in the list of valid ones.Possible values: 0 | 1
namestringrequired
Zone name.Example: example_zone_name
pricing_modelstringrequired
Assigning the wanted pricing model to bid modifier.Example: cpc
Possible values: none | cpm | cpc | cpv
response_timeoutnumber (integer)required
Defines minimum and/or maximum acceptable response time, expressed in milliseconds. Minimum value is 100, maximum 1000.Example: 250
revenue_sharenumber (integer)
Value is expressed as a percentage of income shared with an advertiser. Minimum value is 0, maximum is 100. Changing the default value is limited by the subscription plan.Example: 30
Default: 100
search_algo_expl_ratenumber (integer)required
The approximate rate of total bidRequests to chosen algorithm. Only internal campaigns are affected and rate value is expressed in percentage. Not usable on round-robin. Minimum value: 0, maximum value: 100.Example: 10
Default: 5
seatzone-seats
Seat object.Zone Seat
Name
Descriptionitemsarray
If type is "account" every item must be unique and a valid account id. If type is "campaign" every item must be unique and a valid campaign id. If type is "campaign-group" every item must be unique and a valid group id. Maximum length is limited by subscription plan.Example: 12343141,23526321,98761234
prioritynumber (integer)
Priority over query in request.Example: 1
Possible values: 0 | 1
Default: 1
typestring
Describes type of zone seats.Example: account
Possible values: account | campaign | campaign_group
statusstringrequired
Zone status.Example: active
Possible values: active | verification | rejected | paused | inactive | archived
subid_hashobject
Name
Descriptionenabledinteger
Apply subid hashing to all campaigns.Example: 1
Possible values: 0 | 1
keystring
Hashing key. The key may only contain letters, numbers, dashes and underscores.Example: my_key
targetingzone-targeting
Targeting object.Zone Targeting
Name
Descriptionbrowsersobject
Name
Descriptionitems[ object ]
Array of browser items, maximum length limited by subscription plan.categoriesobject
Name
Descriptionitems[ string ]
Array of valid category names supported by Ocamba, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type category, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
connectionsobject
Name
Descriptionitems[ string ]
Array of valid connection types supported by Ocamba.opstring
Example: nin
Possible values: in | nin
containersobject
Name
Descriptionitems[ string ]
Array of strings containing containers ids. Maximum length limited by subscription plan.opstring
String describing operation.Example: in
Possible values: in
countriesobject
Name
Descriptionitems[ string ]
Array of country codes supported by ocamba (ISO 3166-1, 2 letter country codes), maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type country, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
device_manufacturersobject
Name
Descriptionitems[ string ]
Array of device manufacturer ids, maximum length limited by subscription plan.opstring
Example: in
Possible values: in | nin
device_trackingnumber (integer)
Describes the status of device tracking.Example: 1
Possible values: 0 | 1
device_typesobject
Name
Descriptionitems[ string ]
Array of device types, maximum length limited by subscription plan.opstring
Example: in
Possible values: in | nin
has_user_datanumber (integer)
Describes the availability of user dataExample: 1
Possible values: 0 | 1
ipobject
Name
Descriptionitems[ string ]
Array of ips, each element must be a valid ipv4, ipv6 or cidr format for both v4 and v6, maximum length limited by subscription plan. Required if lists is not present.Example: 123.523.123.4,123.523.123.4/12,2001:0db8:85a3:33a1:ff12:8a2e:0370:7334/23,2301:01b8:f5a3:43a1:afc2:8c2e:0370:7334
lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type ip, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
languagesobject
Name
Descriptionitems[ string ]
Array of unique strings. Each element must be a valid 2-letter language code supported by Ocamba platform, maximum number of items limited by subscription plan.opstring
Example: nin
Possible values: in | nin
osobject
Name
Descriptionitems[ object ]
Array of os items, maximum length limited by subscription plan.pagesobject
Name
Descriptionitems[ string ]
Array of domains, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type domain, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
regionsobject
Name
Descriptionitems[ string ]
Array of region ids generated by the Ocamba platform, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type region, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
subidsobject
Name
Descriptionitems[ string ]
Array of subids, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type subid, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
tagsobject
Name
Descriptionitems[ string ]
Array of tag ids, maximum length limited by subscription plan. This field is deprecated and will be removed in future. Please use container as a replacement.opstring
Example: in
Possible values: in | nin
timeobject
Name
Descriptionitems[ string ]
Array of valid cron expressions, maximum length limited by subscription plan.opstring
Example: in
Possible values: in
typestringrequired
Zone type.Example: rtb
Possible values: rtb | display | native | vast | widget | push | mobile-sdk | smartlink
user_cachenumber (integer)
Turn on/off user cache. Only available on push zones.Example: 1
Possible values: 0 | 1
widgets[ string ]
Array of widget ids, created on the Ocamba platform, max 10 items. Available only for zones of type Widget.201 - Created
info
1 Widgets are only available for zones of type widget.
2 User_cache is only available for zones of type push.
note
1 We recommend using containers instead of tags, as tags are deprecated. If both parameters are sent, containers will take priority.