View Campaign Ab test
View Campaign Ab test
GET
https://api.ocamba.com/v2/adex/campaign-ab-tests/{id}
Retrieves the details of a Campaign Ab test that has previously been created if a valid identifier was providedPath parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/campaign-ab-tests/{id}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/campaign-ab-tests/{id}';
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/{id}");
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": "10000",
"company_id": "6197120",
"campaign_id": "1011120",
"creative_id": "1322610",
"name": "TestNo2",
"stickiness": 0,
"variation_count": 9,
"status": "inactive",
"start_time": "2022-11-05 11:28:59",
"end_time": "2023-10-04 00:00:00",
"variations": [
{
"id": "10010",
"company_id": "6197120",
"ab_test_id": "10000",
"name": "immeee",
"settings": {
"landing_url": "dev.ocamba.com"
}
}
],
"create_time": "2022-9-26 06:31:29",
"update_time": "2022-9-26 06:31:29"
}
]
}
Responses
Tip
If you don’t know the campaign ab test id, list the campaign tests to find it.
If you want to get variations only, use fields query parameter because endpoint for reading variations does not exist.