Endpoint to create a campaign restriction.
curl --request POST \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions \
--header 'Content-Type: application/json' \
--data '{
"limit": 123,
"restrictionTypeId": 123
}'
{
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"id": 123,
"limit": 123,
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictionType": {
"frequencyType": "daily",
"id": 123,
"interactionType": "impressions",
"level": "campaign"
},
"status": "active",
"updatedAt": "2023-11-07T05:31:56Z"
}
The ID of the campaign.
Limit-based restrictions for a campaign.
Successful Response
Limit-based restrictions for a campaign.
curl --request POST \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions \
--header 'Content-Type: application/json' \
--data '{
"limit": 123,
"restrictionTypeId": 123
}'
{
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"id": 123,
"limit": 123,
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictionType": {
"frequencyType": "daily",
"id": 123,
"interactionType": "impressions",
"level": "campaign"
},
"status": "active",
"updatedAt": "2023-11-07T05:31:56Z"
}
Endpoint to create a campaign restriction.
curl --request POST \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions \
--header 'Content-Type: application/json' \
--data '{
"limit": 123,
"restrictionTypeId": 123
}'
{
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"id": 123,
"limit": 123,
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictionType": {
"frequencyType": "daily",
"id": 123,
"interactionType": "impressions",
"level": "campaign"
},
"status": "active",
"updatedAt": "2023-11-07T05:31:56Z"
}
The ID of the campaign.
Limit-based restrictions for a campaign.
Successful Response
Limit-based restrictions for a campaign.
curl --request POST \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions \
--header 'Content-Type: application/json' \
--data '{
"limit": 123,
"restrictionTypeId": 123
}'
{
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"id": 123,
"limit": 123,
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictionType": {
"frequencyType": "daily",
"id": 123,
"interactionType": "impressions",
"level": "campaign"
},
"status": "active",
"updatedAt": "2023-11-07T05:31:56Z"
}