curl --request GET \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions \
--header 'Authorization: Bearer <token>'{
"restrictions": [
{
"id": 123,
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictionType": {
"id": 123,
"interactionType": "impressions",
"frequencyType": "daily",
"level": "campaign"
},
"limit": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": "active"
}
]
}Endpoint to get campaign restrictions.
curl --request GET \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions \
--header 'Authorization: Bearer <token>'{
"restrictions": [
{
"id": 123,
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictionType": {
"id": 123,
"interactionType": "impressions",
"frequencyType": "daily",
"level": "campaign"
},
"limit": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": "active"
}
]
}A valid API key generated in Topsort's UI.
The ID of the campaign.
Successful Response
Show child attributes
The ID of the restriction.
The ID of the campaign.
The ID of the marketplace.
The type of restriction.
Show child attributes
The ID of the restriction.
The interaction type of the restriction.
impressions, clicks, conversions The frequency type of the restriction.
daily, weekly, monthly The level of the restriction.
campaign, bid The limit of the restriction.
The creation date of the restriction.
The last update date of the restriction.
The status of the restriction.
active, inactive Was this page helpful?