Campaigns sync

Campaigns sync

POST https://api.ocamba.com/api/v1/adex/campaigns/sync
Syncs Campaigns

Request schema

body

Response schemas

curl -X POST \
 "https://api.ocamba.com/api/v1/adex/campaigns/sync" \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "campaign_id": [
    1009154,
    5234125
  ]
}'
const url = 'https://api.ocamba.com/api/v1/adex/campaigns/sync';
const options = {
  method: 'POST',
  headers: {
    Authorization: "Bearer {TOKEN}",
    'Content-Type': "application/json"
  },
  body: JSON.stringify(
    {
      "campaign_id": [
        1009154,
        5234125
      ]
    }
  )
};

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/api/v1/adex/campaigns/sync");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
  [
    "campaign_id" => [
      1009154,
      5234125
    ]
  ]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "success": "1",
  "failed": "0"
}
Responses