put https://sfx.freewheel.tv/api/remote-campaign/start-campaign?token=MY_CAMPAIGN_TOKEN'.
This method uses PUT to start a campaign.
Validations/Error Messages for Start a Campaign
In case of failure the service replies with specific error codes. Here are the codes for the JSON and the corresponding HTTP status codes:
Code | Indicates |
---|---|
0 | Campaign is now live => HTTP 200 |
1 | Token parameter is mandatory => HTTP 400 |
2 | Failed to activate campaign (Please check provided token is valid) => HTTP 503 |
3 | Failed to refresh ad server configurations => HTTP 503 |
4 | Ad server configurations were partially refreshed => HTTP 503 |
5 | Can not start a finished campaign => HTTP 403 |