POST
/
public
/
v1
/
toptimize
/
forecasting
/
campaign
curl --request POST \
  --url https://api.topsort.com/public/v1/toptimize/forecasting/campaign \
  --header 'Content-Type: application/json' \
  --data '{
  "bids": {
    "inventory": [],
    "productIds": [
      "<string>"
    ]
  },
  "budget": {
    "amount": 1,
    "type": "daily"
  },
  "campaignType": "autobidding",
  "targetRoas": 1,
  "timeWindow": 7
}'
[
  {
    "forecastDate": "2023-12-25",
    "metrics": [
      {
        "metricName": "<string>",
        "values": {
          "forecastIntervalMax": 123,
          "forecastIntervalMin": 123,
          "forecastValue": 123
        }
      }
    ]
  }
]

Body

application/json

Request model for campaign forecasts with the new structure.

Response

200
application/json

Successful Response

The response is of type object[].