Create Conversion

Create Conversion

POST https://api.ocamba.com/v2/adex/conversions
Creates a new Conversion object

Request schema

body

Response schemas

curl -X POST \
 "https://api.ocamba.com/v2/adex/conversions" \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "account_id": "6197120",
  "name": "Example Name",
  "description": "The description of a Conversion has the max of 2000 characters",
  "status": "active",
  "duplication_policy": "pixel"
}'
const url = 'https://api.ocamba.com/v2/adex/conversions';
const options = {
  method: 'POST',
  headers: {
    Authorization: "Bearer {TOKEN}",
    'Content-Type': "application/json"
  },
  body: JSON.stringify(
    {
      "account_id": "6197120",
      "name": "Example Name",
      "description": "The description of a Conversion has the max of 2000 characters",
      "status": "active",
      "duplication_policy": "pixel"
    }
  )
};

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/conversions");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
  [
    "account_id" => "6197120",
    "name" => "Example Name",
    "description" => "The description of a Conversion has the max of 2000 characters",
    "status" => "active",
    "duplication_policy" => "pixel"
  ]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

201 Created

Responses