Create Bid modifier
Create Bid modifier
POST
https://api.ocamba.com/v2/adex/bid-modifiers
Creates a new Bid modifier object
Request schema
bodyPOST https://api.ocamba.com/v2/adex/bid-modifiers HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
"name": "DemoBidModifiers",
"description": "My first bid modifier",
"pricing_model": "cpc",
"ignore_bid_strategy": 1,
"percent_value": 12.55,
"value": 87.32,
"max_value": 11.03,
"targeting": {}
}
curl -X POST "https://api.ocamba.com/v2/adex/bid-modifiers" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"DemoBidModifiers","description":"My first bid modifier","pricing_model":"cpc","ignore_bid_strategy":1,"percent_value":12.55,"value":87.32,"max_value":11.03,"targeting":{}}'
fetch("https://api.ocamba.com/v2/adex/bid-modifiers", {
method: "POST",
headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify(
{
"name": "DemoBidModifiers",
"description": "My first bid modifier",
"pricing_model": "cpc",
"ignore_bid_strategy": 1,
"percent_value": 12.55,
"value": 87.32,
"max_value": 11.03,
"targeting": {}
}
)
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/adex/bid-modifiers");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $token",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
[
"name" => "DemoBidModifiers",
"description" => "My first bid modifier",
"pricing_model" => "cpc",
"ignore_bid_strategy" => 1,
"percent_value" => 12.55,
"value" => 87.32,
"max_value" => 11.03,
"targeting" => []
]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Responses
201 Created
HTTP/1.1 201 Created
Content-Type: application/json
Responses
Tip
1
Fields percent_value and value are mutually exclusive.
Note
1
We recommend using containers instead of tags, as tags are deprecated. If both parameters are sent, containers will take priority.