API Endpoints
Campaign

/external/v1/advertisers/{advertiserId}/campaigns/{campaignId}/archive

POST

Archives the campaign directly if there are no active products.

If campaign is already archived then it returns BAD_REQUEST response code.

If the campaign has active products under it then it returns MULTIPLE_CHOICES response code and number of active products. Also, a confirmation is required from the user.

For positive confirmation (set request body value to true), it archives the campaign and pauses the active product. For negative confirmation (set body value to false), campaign will not be archived.

Path Parameters
advertiserId
*
campaignId
*
Body Parameters
body
Responses
200
OK
300
Confirmation from user
activeProductsCount
400
Bad Request
messages
401
Unauthorized
403
Forbidden
404
Not Found
messages