Browse the help center

Capping API endpoints

Endpoint reference for the Capping tag (43 endpoints): Frequency capping configuration

Reference network manager admin

Frequency capping configuration. 43 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

GET /rest-api/advertiser/capping/{advertiserId}.do

Request examples

Get advertiser capping list.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesNumeric ID of the advertiser whose capping rules should be retrieved

Responses: 200 — Capping list returned successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/advertiser/capping/{advertiserId}.do

Request examples

Create advertiser capping.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesNumeric ID of the advertiser to add the capping rule to
typeformstringyesType of the capping to create. Only ADVERTISER_FREQUENCY is accepted; any other value of the shared enum is rejected with ‘Capping type is incompatible with entity’ Values: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, CAMPAIGN_NO_CLICK, BANNER_REQUEST, BANNER_FREQUENCY, BANNER_CLICKS, BANNER_ACTIONS, BANNER_NO_CLICK, PLACEMENT_REQUEST, PLACEMENT_FREQUENCY, PLACEMENT_CLICKS, PLACEMENT_ACTIONS, ADVERTISER_FREQUENCY, CAMPAIGN_DSP_FREQUENCY, CAMPAIGN_DSP_FREQUENCY_MONTH, CAMPAIGN_DSP_RECENCY.
amountformintegeryesMaximum number of events allowed within the specified period
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
flatformbooleanyesWhen true, events are distributed evenly (flat) across the period instead of being served/counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Capping created: {success, capping:{id, type, amount, period, periodType, flat, subject, …}} · 404 — Not found — resource does not exist. Errors follow the shared conventions.

GET /rest-api/banner/{bannerId}/action-capping.do

Request examples

Get banner action capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose action capping rules should be retrieved

Responses: 200 — Action capping returned successfully · 404 — No such banner. Errors follow the shared conventions.

DELETE /rest-api/banner/{bannerId}/action-capping.do

Request examples

Remove banner action capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose action capping rules should be deleted

Responses: 200 — Action capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/action-capping/set.do

Request examples

Set banner action capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
bannerIdpathintegeryesNumeric ID of the banner to configure action capping for
amountformintegernoMaximum number of conversions allowed within the specified period. Optional; if omitted the existing amount is preserved.
evenDistributionformbooleannoWhen true, conversions are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Action capping set successfully · 404 — Banner not found. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/action-capping/update.do

Request examples

Update banner action capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner to update action capping for
amountformintegernoMaximum number of conversions allowed within the specified period. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, conversions are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping; selects the rule to update. If omitted and the banner has exactly one rule of this type, that rule is updated and keeps its subject; otherwise USER_COOKIE. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Action capping updated successfully · 404 — Banner not found, or it has no action capping rule for the subject. Errors follow the shared conventions.

GET /rest-api/banner/{bannerId}/click-capping.do

Request examples

Get banner click capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose click capping rules should be retrieved

Responses: 200 — Click capping returned successfully · 404 — No such banner. Errors follow the shared conventions.

DELETE /rest-api/banner/{bannerId}/click-capping.do

Request examples

Remove banner click capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose click capping rules should be deleted

Responses: 200 — Click capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/click-capping/set.do

Request examples

Set banner click capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
bannerIdpathintegeryesNumeric ID of the banner to configure click capping for
amountformintegernoMaximum number of clicks allowed within the specified period. Optional; if omitted the existing amount is preserved.
evenDistributionformbooleannoWhen true, clicks are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Click capping set successfully · 404 — Banner not found. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/click-capping/update.do

Request examples

Update banner click capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner to update click capping for
amountformintegernoMaximum number of clicks allowed within the specified period. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, clicks are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping; selects the rule to update. If omitted and the banner has exactly one rule of this type, that rule is updated and keeps its subject; otherwise USER_COOKIE. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Click capping updated successfully · 404 — Banner not found, or it has no click capping rule for the subject. Errors follow the shared conventions.

GET /rest-api/banner/{bannerId}/frequency-capping.do

Request examples

Get banner frequency capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose frequency capping rules should be retrieved

Responses: 200 — Frequency capping returned successfully · 404 — No such banner. Errors follow the shared conventions.

DELETE /rest-api/banner/{bannerId}/frequency-capping.do

Request examples

Remove banner frequency capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose frequency capping rules should be deleted

Responses: 200 — Frequency capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/frequency-capping/set.do

Request examples

Set banner frequency capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType (e.g. 24 when periodType is HOUR means 24 hours)
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
bannerIdpathintegeryesNumeric ID of the banner to configure frequency capping for
amountformintegernoMaximum number of impressions allowed within the specified period. Optional; if omitted the existing amount is preserved.
evenDistributionformbooleannoWhen true, impressions are distributed evenly across the period instead of being served as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Frequency capping set successfully · 404 — Banner not found. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/frequency-capping/update.do

Request examples

Update banner frequency capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner to update frequency capping for
amountformintegernoMaximum number of impressions allowed within the specified period. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, impressions are distributed evenly across the period instead of being served as fast as possible
subjectformstringnoEntity used to identify unique users for capping; selects the rule to update. If omitted and the banner has exactly one rule of this type, that rule is updated and keeps its subject; otherwise USER_COOKIE. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Frequency capping updated successfully · 404 — Banner not found, or it has no frequency capping rule for the subject. Errors follow the shared conventions.

GET /rest-api/banner/{bannerId}/no-click-capping.do

Request examples

Get banner no-click capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose no-click capping rules should be retrieved

Responses: 200 — No-click capping returned successfully · 404 — No such banner. Errors follow the shared conventions.

DELETE /rest-api/banner/{bannerId}/no-click-capping.do

Request examples

Remove banner no-click capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose no-click capping rules should be deleted

Responses: 200 — No-click capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/no-click-capping/set.do

Request examples

Set banner no-click capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
bannerIdpathintegeryesNumeric ID of the banner to configure no-click capping for
amountformintegernoMaximum number of impressions without a click before the banner is suppressed. Optional; if omitted the existing amount is preserved.
evenDistributionformbooleannoWhen true, impression counting is distributed evenly across the period
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — No-click capping set successfully · 404 — Banner not found. Errors follow the shared conventions.

POST /rest-api/banner/{bannerId}/no-click-capping/update.do

Request examples

Update banner no-click capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner to update no-click capping for
amountformintegernoMaximum number of impressions without a click before the banner is suppressed. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, impression counting is distributed evenly across the period
subjectformstringnoEntity used to identify unique users for capping; selects the rule to update. If omitted and the banner has exactly one rule of this type, that rule is updated and keeps its subject; otherwise USER_COOKIE. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — No-click capping updated successfully · 404 — Banner not found, or it has no no-click capping rule for the subject. Errors follow the shared conventions.

GET /rest-api/banner/capping/{bannerId}.do

Request examples

Get banner capping list.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner whose capping rules should be retrieved

Responses: 200 — Capping list returned successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/banner/capping/{bannerId}.do

Request examples

Create banner capping.

ParameterInTypeRequiredDescription
bannerIdpathintegeryesNumeric ID of the banner to add the capping rule to
typeformstringyesType of the capping to create. Only banner types are accepted: BANNER_REQUEST, BANNER_FREQUENCY, BANNER_CLICKS, BANNER_ACTIONS, BANNER_NO_CLICK; any other value of the shared enum is rejected with ‘Capping type is incompatible with entity’ Values: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, CAMPAIGN_NO_CLICK, BANNER_REQUEST, BANNER_FREQUENCY, BANNER_CLICKS, BANNER_ACTIONS, BANNER_NO_CLICK, PLACEMENT_REQUEST, PLACEMENT_FREQUENCY, PLACEMENT_CLICKS, PLACEMENT_ACTIONS, ADVERTISER_FREQUENCY, CAMPAIGN_DSP_FREQUENCY, CAMPAIGN_DSP_FREQUENCY_MONTH, CAMPAIGN_DSP_RECENCY.
amountformintegeryesMaximum number of events allowed within the specified period
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
flatformbooleanyesWhen true, events are distributed evenly (flat) across the period instead of being served/counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Capping created: {success, capping:{id, type, amount, period, periodType, flat, subject, …}} · 404 — Not found — resource does not exist. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/action-capping.do

Request examples

Get campaign action capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose action capping rules should be retrieved

Responses: 200 — Action capping returned successfully · 404 — Campaign not found. Errors follow the shared conventions.

DELETE /rest-api/campaign/{campaignId}/action-capping.do

Request examples

Remove campaign action capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose action capping rules should be deleted

Responses: 200 — Action capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/action-capping/set.do

Request examples

Set campaign action capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
campaignIdpathintegeryesNumeric ID of the campaign to configure action capping for
amountformintegernoMaximum number of conversions allowed within the specified period. Optional; if omitted the capping has no amount limit.
evenDistributionformbooleannoWhen true, conversions are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Action capping set successfully · 404 — Campaign not found. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/action-capping/update.do

Request examples

Update campaign action capping.

ParameterInTypeRequiredDescription
idformintegeryesNumeric ID of the specific capping record to update (obtained from the GET capping list response)
campaignIdpathintegeryesNumeric ID of the campaign that owns the capping record
amountformintegernoMaximum number of conversions allowed within the specified period. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, conversions are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; if omitted the existing subject is preserved. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Action capping updated successfully · 404 — No action capping enabled or campaign not found. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/click-capping.do

Request examples

Get campaign click capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose click capping rules should be retrieved

Responses: 200 — Click capping returned successfully · 404 — Campaign not found. Errors follow the shared conventions.

DELETE /rest-api/campaign/{campaignId}/click-capping.do

Request examples

Remove campaign click capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose click capping rules should be deleted

Responses: 200 — Click capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/click-capping/set.do

Request examples

Set campaign click capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
campaignIdpathintegeryesNumeric ID of the campaign to configure click capping for
amountformintegernoMaximum number of clicks allowed within the specified period. Optional; if omitted the capping has no amount limit.
evenDistributionformbooleannoWhen true, clicks are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Click capping set successfully · 404 — Campaign not found. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/click-capping/update.do

Request examples

Update campaign click capping.

ParameterInTypeRequiredDescription
idformintegeryesNumeric ID of the specific capping record to update (obtained from the GET capping list response)
campaignIdpathintegeryesNumeric ID of the campaign that owns the capping record
amountformintegernoMaximum number of clicks allowed within the specified period. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, clicks are distributed evenly across the period instead of being counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; if omitted the existing subject is preserved. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Click capping updated successfully · 404 — No click capping enabled or campaign not found. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/frequency-capping.do

Request examples

Get campaign frequency capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose frequency capping rules should be retrieved

Responses: 200 — Frequency capping returned successfully · 404 — Campaign not found. Errors follow the shared conventions.

DELETE /rest-api/campaign/{campaignId}/frequency-capping.do

Request examples

Remove campaign frequency capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose frequency capping rules should be deleted

Responses: 200 — Frequency capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/frequency-capping/set.do

Request examples

Set campaign frequency capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType (e.g. 24 when periodType is HOUR means 24 hours)
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
campaignIdpathintegeryesNumeric ID of the campaign to configure frequency capping for
amountformintegernoMaximum number of impressions allowed within the specified period. Optional; if omitted the capping has no amount limit.
evenDistributionformbooleannoWhen true, impressions are distributed evenly across the period instead of being served as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Frequency capping set successfully · 404 — Campaign not found. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/frequency-capping/update.do

Request examples

Update campaign frequency capping.

ParameterInTypeRequiredDescription
idformintegeryesNumeric ID of the specific capping record to update (obtained from the GET capping list response)
campaignIdpathintegeryesNumeric ID of the campaign that owns the capping record
amountformintegernoMaximum number of impressions allowed within the specified period. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, impressions are distributed evenly across the period instead of being served as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; if omitted the existing subject is preserved. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Frequency capping updated successfully · 404 — No frequency capping enabled or campaign not found. Errors follow the shared conventions.

GET /rest-api/campaign/{campaignId}/no-click-capping.do

Request examples

Get campaign no-click capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose no-click capping rules should be retrieved

Responses: 200 — No-click capping returned successfully · 404 — Campaign not found. Errors follow the shared conventions.

DELETE /rest-api/campaign/{campaignId}/no-click-capping.do

Request examples

Remove campaign no-click capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose no-click capping rules should be deleted

Responses: 200 — No-click capping removed successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/no-click-capping/set.do

Request examples

Set campaign no-click capping.

ParameterInTypeRequiredDescription
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
campaignIdpathintegeryesNumeric ID of the campaign to configure no-click capping for
amountformintegernoMaximum number of impressions without a click before the banner is suppressed. Optional; if omitted the capping has no amount limit.
evenDistributionformbooleannoWhen true, impression counting is distributed evenly across the period
subjectformstringnoEntity used to identify unique users for capping. Defaults to USER_COOKIE if omitted. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — No-click capping set successfully · 404 — Campaign not found. Errors follow the shared conventions.

POST /rest-api/campaign/{campaignId}/no-click-capping/update.do

Request examples

Update campaign no-click capping.

ParameterInTypeRequiredDescription
idformintegeryesNumeric ID of the specific capping record to update (obtained from the GET capping list response)
campaignIdpathintegeryesNumeric ID of the campaign that owns the capping record
amountformintegernoMaximum number of impressions without a click before the banner is suppressed. Optional; if omitted the existing amount is preserved.
periodformintegernoLength of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
periodTypeformstringnoUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
evenDistributionformbooleannoWhen true, impression counting is distributed evenly across the period
subjectformstringnoEntity used to identify unique users for capping. Optional; if omitted the existing subject is preserved. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — No-click capping updated successfully · 404 — No no-click capping enabled or campaign not found. Errors follow the shared conventions.

GET /rest-api/campaign/capping/{campaignId}.do

Request examples

Get campaign capping list.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign whose capping rules should be retrieved

Responses: 200 — Capping list returned successfully · 404 — No such campaign, or it is deleted. Errors follow the shared conventions.

POST /rest-api/campaign/capping/{campaignId}.do

Request examples

Create campaign capping.

ParameterInTypeRequiredDescription
campaignIdpathintegeryesNumeric ID of the campaign to add the capping rule to
typeformstringyesType of the capping to create. Only campaign types are accepted: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, CAMPAIGN_NO_CLICK, CAMPAIGN_DSP_FREQUENCY and CAMPAIGN_DSP_FREQUENCY_MONTH (period=1, periodType DAY or MONTH, flat=false), CAMPAIGN_DSP_RECENCY (amount=1, periodType MINUTE, period 1..60, flat=false). BANNER_, PLACEMENT_ and ADVERTISER_* values are listed by the shared enum but rejected with ‘Capping type is incompatible with entity’ Values: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, CAMPAIGN_NO_CLICK, BANNER_REQUEST, BANNER_FREQUENCY, BANNER_CLICKS, BANNER_ACTIONS, BANNER_NO_CLICK, PLACEMENT_REQUEST, PLACEMENT_FREQUENCY, PLACEMENT_CLICKS, PLACEMENT_ACTIONS, ADVERTISER_FREQUENCY, CAMPAIGN_DSP_FREQUENCY, CAMPAIGN_DSP_FREQUENCY_MONTH, CAMPAIGN_DSP_RECENCY.
amountformintegeryesMaximum number of events allowed within the specified period
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
flatformbooleanyesWhen true, events are distributed evenly (flat) across the period instead of being served/counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Capping created: {success, capping:{id, type, amount, period, periodType, flat, subject, …}} · 404 — Not found — resource does not exist. Errors follow the shared conventions.

GET /rest-api/campaign/capping/bulk.do

Request examples

Get campaign cappings in bulk.

ParameterInTypeRequiredDescription
campaignIdsqueryarray<integer>noOne or more numeric campaign IDs to retrieve cappings for, passed as repeated query parameters

Responses: 200 — Capping list returned successfully. Errors follow the shared conventions.

POST /rest-api/capping/{cappingId}.do

Request examples

Update capping by ID.

ParameterInTypeRequiredDescription
cappingIdpathintegeryesNumeric ID of the capping record to update
typeformstringyesType of the capping record. Allowed values: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, BANNER_REQUEST, BANNER_FREQUENCY, BANNER_CLICKS, BANNER_ACTIONS, PLACEMENT_REQUEST, PLACEMENT_FREQUENCY, PLACEMENT_CLICKS, PLACEMENT_ACTIONS, ADVERTISER_FREQUENCY Values: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, CAMPAIGN_NO_CLICK, BANNER_REQUEST, BANNER_FREQUENCY, BANNER_CLICKS, BANNER_ACTIONS, BANNER_NO_CLICK, PLACEMENT_REQUEST, PLACEMENT_FREQUENCY, PLACEMENT_CLICKS, PLACEMENT_ACTIONS, ADVERTISER_FREQUENCY, CAMPAIGN_DSP_FREQUENCY, CAMPAIGN_DSP_FREQUENCY_MONTH, CAMPAIGN_DSP_RECENCY.
amountformintegeryesMaximum number of events (impressions, clicks, or actions) allowed within the specified period
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
flatformbooleanyesWhen true, events are distributed evenly (flat) across the period instead of being served/counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Capping updated successfully · 404 — No capping of this type has this id, or the entity it belongs to is deleted. Errors follow the shared conventions.

POST /rest-api/capping/delete.do

Request examples

Delete cappings by IDs.

ParameterInTypeRequiredDescription
idsformarray<string>yesArray of colon-separated ‘capping_id:capping_type’ pairs to delete (e.g. ‘123:CAMPAIGN_FREQUENCY’, ‘456:PLACEMENT_CLICKS’)

Responses: 200 — Cappings deleted successfully · 404 — One of the ids is not a capping of the given type. Errors follow the shared conventions.

GET /rest-api/placement/capping/{placementId}.do

Request examples

Get placement capping list.

ParameterInTypeRequiredDescription
placementIdpathintegeryesNumeric ID of the placement whose capping rules should be retrieved

Responses: 200 — Capping list returned successfully · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/placement/capping/{placementId}.do

Request examples

Create placement capping.

ParameterInTypeRequiredDescription
placementIdpathintegeryesNumeric ID of the placement to add the capping rule to
typeformstringyesType of the capping to create. Only placement types are accepted: PLACEMENT_REQUEST, PLACEMENT_FREQUENCY, PLACEMENT_CLICKS, PLACEMENT_ACTIONS; any other value of the shared enum is rejected with ‘Capping type is incompatible with entity’ Values: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, CAMPAIGN_NO_CLICK, BANNER_REQUEST, BANNER_FREQUENCY, BANNER_CLICKS, BANNER_ACTIONS, BANNER_NO_CLICK, PLACEMENT_REQUEST, PLACEMENT_FREQUENCY, PLACEMENT_CLICKS, PLACEMENT_ACTIONS, ADVERTISER_FREQUENCY, CAMPAIGN_DSP_FREQUENCY, CAMPAIGN_DSP_FREQUENCY_MONTH, CAMPAIGN_DSP_RECENCY.
amountformintegeryesMaximum number of events allowed within the specified period
periodformintegeryesLength of the capping time window, expressed in units defined by periodType
periodTypeformstringyesUnit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR Values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR.
flatformbooleanyesWhen true, events are distributed evenly (flat) across the period instead of being served/counted as fast as possible
subjectformstringnoEntity used to identify unique users for capping. Optional; allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP Values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP.

Responses: 200 — Capping created: {success, capping:{id, type, amount, period, periodType, flat, subject, …}} · 404 — Not found — resource does not exist. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.