Update Campaign Ab test


                https://api.ocamba.com/v2/adex/campaign-ab-tests/{id}
            

Updates the specific Campaign Ab test by setting the values of the parameters passed. Any parameters not provided will be left unchanged


Name
Description
idstringrequired
Unique ab test id.


Example: 1411

Name
Description
namestringrequired
AB test name.


Example: First AB Test

statusstringrequired
AB test activity status. On test creation, status is set to 'inactive'.


Example: active

Possible values: inactive | active

stickinessnumber (int)required
Test stickiness.

Possible values: 0 | 1

AB test targeting.
AB Test Targeting
Name
Description
browsersobject

Name
Description
items[ object ]
Array of browser items, maximum length limited by subscription plan.

categoriesobject

Name
Description
itemsarray
Array of strings containing category ids, maximum number of items limited by subscription plan.


Example: IAB1,IAB2

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

containersobject

Name
Description
items[ string ]
Array of strings containing containers ids. Maximum length limited by subscription plan.

opstring
String describing operation.


Example: in

Possible values: in

countriesobject

Name
Description
itemsarray
Array of strings containing country ids.


Example: RS,DE,CA,US

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

device_manufacturersobject

Name
Description
itemsarray
Array of strings containing device manufacturer ids, maximum number of items limited by subscription plan.


Example: 14,6

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

device_trackingnumber (integer)
Is device tracking enabled.

Possible values: 0 | 1

device_typesobject

Name
Description
itemsarray
Array of strings containing device types, maximum number of items limited by subscription plan.


Example: mobile,console

Possible values: mobile | desktop | console | tablet

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

has_user_datanumber (integer)
Is user data enabled.

Possible values: 0 | 1

ipobject

Name
Description
itemsarray
Array of strings containing ips, each element must be a valid ipv4, ipv6 or cidr format for both v4 and v6. Maximum number of items limited by subscription plan.


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

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

keywordsobject

Name
Description
itemsarray
Array of unique strings containing keywords. One item can be a string with minimum length of 3 and maximum of 150, containing max 20 groups separated by \|. Each group can be made up of these characters: a-zA-Z0-9_%!


Example: keyword01!\|keyword02_%

languagesobject

Name
Description
items[ 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
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

osobject

Name
Description
items[ object ]
Array of os items, maximum length limited by subscription plan.

pagesobject

Name
Description
itemsarray
Array of strings containing page ids, maximum number of items limited by subscription plan.


Example: b92.net,google.com

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

regionsobject

Name
Description
itemsarray
Array of strings containing region ids.


Example: 2661876,2565340

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

subidsobject

Name
Description
itemsarray
Array of strings containing subids. Subid must not contain whitespace (space, tab, newline, etc.), maximum number of items limited by subscription plan.


Example: ref_subid,subid_2

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

tagsobject

Name
Description
itemsarray
Array of strings containing tag ids, maximum number of items limited by subscription plan. This field is deprecated and will be removed in future. Please use container as a replacement.


Example: 1441,1623

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

timeobject

Name
Description
itemsarray
Array of strings containing time in format of cron expression, maximum number of items limited by subscription plan.


Example: * * 1 * *,* 12,13,14,19,23 * 4,5,6 * 6,0

opstring
String describing operation.


Example: in

Possible values: in | eq

zonesobject

Name
Description
itemsarray
Array of strings containing zone ids, maximum number of items limited by subscription plan.


Example: 1334141,1773238

opstring
String describing operation.


Example: eq

Possible values: in | nin | eq | neq

204 - No Content
Arrow

note
1 At least one of the updatable fields should be sent via HTTP body in order to change the current state of the campaign test.

2 We recommend using containers instead of tags, as tags are deprecated. If both parameters are sent, containers will take priority.
tip
1 If you don't know the campaign test id, list the campaign tests to find it.

200 Arrow
{
  "campaign_id": "1011120",
  "creative_id": "18",
  "name": "TestNo3",
  "stickiness": "1",
  "status": "inactive",
  "start_time": "2022-09-30 09:36:13",
  "end_time": "0001-01-01 00:00:00"
}