curl --request PATCH \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/bids/{bid-id} \
--header 'Content-Type: application/json' \
--data '{
"amount": 1,
"isActive": true
}'
{
"amount": 1,
"bidId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bidsBehaviorData": "<string>",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"formatProperties": {
"adFormat": "banner",
"bannerAssets": [
{
"assetId": "asset_01j713j64yfsvtj4bs3ccpy5ca",
"content": {},
"contentType": "image/png",
"dimensions": {
"height": 1080,
"width": 1920
},
"jsonTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size": 123,
"url": "<string>"
}
],
"deviceType": "desktop",
"slotId": "<string>"
},
"isActive": true,
"location": "Santiago",
"state": "active",
"target": {
"id": "p_8983",
"type": "product"
},
"trigger": {
"type": "keyword",
"value": {
"matchType": "exact",
"words": [
"<string>"
]
}
},
"triggers": [
{
"type": "keyword",
"value": {
"matchType": "exact",
"words": [
"<string>"
]
}
}
]
}
Endpoint to update a bid.
curl --request PATCH \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/bids/{bid-id} \
--header 'Content-Type: application/json' \
--data '{
"amount": 1,
"isActive": true
}'
{
"amount": 1,
"bidId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bidsBehaviorData": "<string>",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"formatProperties": {
"adFormat": "banner",
"bannerAssets": [
{
"assetId": "asset_01j713j64yfsvtj4bs3ccpy5ca",
"content": {},
"contentType": "image/png",
"dimensions": {
"height": 1080,
"width": 1920
},
"jsonTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size": 123,
"url": "<string>"
}
],
"deviceType": "desktop",
"slotId": "<string>"
},
"isActive": true,
"location": "Santiago",
"state": "active",
"target": {
"id": "p_8983",
"type": "product"
},
"trigger": {
"type": "keyword",
"value": {
"matchType": "exact",
"words": [
"<string>"
]
}
},
"triggers": [
{
"type": "keyword",
"value": {
"matchType": "exact",
"words": [
"<string>"
]
}
}
]
}
The ID of the campaign.
The ID of the bid.
The Bid update request body.
Successful Response
Represents an auction bid for a specific entity and a specific maximum amount.