List Campaign Ab tests
List Campaign Ab tests
GET
https://api.ocamba.com/v2/adex/campaign-ab-tests
Returns a list of Campaign Ab testsQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/campaign-ab-tests" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/campaign-ab-tests';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/adex/campaign-ab-tests");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 1,
"items": [
{
"id": "12010",
"company_id": "6197120",
"campaign_id": "1010797",
"creative_id": "1321446",
"name": "My first ab test",
"status": "inactive",
"start_time": "2024-11-05 11:28:59",
"end_time": "2024-12-04 00:00:00",
"stickiness": 1,
"targeting": {
"subids": {
"items": [
"12462"
],
"op": "eq"
},
"keywords": {
"items": [
"all|any",
"current"
]
}
},
"variation_count": 2,
"variations": [
{
"id": "12276",
"name": "Control",
"is_control": true,
"create_time": "2022-12-22 09:21:23",
"update_time": "2022-12-22 09:21:23"
},
{
"id": "12277",
"name": "small image variation",
"settings": {
"image": {
"de": "https://sm.ocmcore.com/share/6197120/adex/media/708766246-1671700884099-image",
"en": "https://sm.ocmcore.com/share/6197120/adex/media/708766246-1671700883907-image"
},
"image_size": {
"de": "256x256",
"en": "256x256",
},
"landing_url": "https://google.com",
"title": {
"de": "deutsch",
"en": "english"
}
},
"create_time": "2022-12-22 09:21:23",
"update_time": "2022-12-22 22:54:27"
}
],
"create_time": "2022-12-22 09:21:24",
"update_time": "2022-12-22 22:54:29"
}
]
}
Responses
Tip
Searchable fields are id and name.
Sortable fields are id, name, status, start_time, end_time, create_time and update_time.
Filterable fields are: id, name, campaign_id, status, start_time, end_time, create_time and update_time.