Campaigns sync

Campaigns sync

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

Syncs Campaigns

Request schema

body

Response schemas

POST https://api.ocamba.com/api/v1/adex/campaigns/sync HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
  "name": "DemoCampaign",
  "status": "active",
  "pricing_model": "cpc",
  "score": 78,
  "iab_category": [
    ""
  ],
  "frequency_cap": {
    "impression": {
      "expiry_time": 10,
      "max_count": 2
    }
  },
  "remote_id": 42131,
  "exchange_id": 12341,
  "description": "Description goes here"
}
curl -X POST "https://api.ocamba.com/api/v1/adex/campaigns/sync" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"DemoCampaign","status":"active","pricing_model":"cpc","score":78,"iab_category":[""],"frequency_cap":{"impression":{"expiry_time":10,"max_count":2}},"remote_id":42131,"exchange_id":12341,"description":"Description goes here"}'
fetch("https://api.ocamba.com/api/v1/adex/campaigns/sync", {
  method: "POST",
  headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify(
    {
      "name": "DemoCampaign",
      "status": "active",
      "pricing_model": "cpc",
      "score": 78,
      "iab_category": [
        ""
      ],
      "frequency_cap": {
        "impression": {
          "expiry_time": 10,
          "max_count": 2
        }
      },
      "remote_id": 42131,
      "exchange_id": 12341,
      "description": "Description goes here"
    }
  )
}).then(r => r.json());
$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(
  [
    "name" => "DemoCampaign",
    "status" => "active",
    "pricing_model" => "cpc",
    "score" => 78,
    "iab_category" => [
      ""
    ],
    "frequency_cap" => [
      "impression" => [
        "expiry_time" => 10,
        "max_count" => 2
      ]
    ],
    "remote_id" => 42131,
    "exchange_id" => 12341,
    "description" => "Description goes here"
  ]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

HTTP/1.1 200 OK
Content-Type: application/json

{}
Responses