Set banner action capping
Creates or replaces the action (conversion) capping rule for a banner, limiting how many conversions are counted within a time window.
https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/action-capping/set.do Creates or replaces the action (conversion) capping rule for a banner, limiting how many conversions are counted within a time window. If a capping rule already exists for the given subject type and conversion action (actionId; omitted means every action), it is updated in place; otherwise a new rule is created. The capping is automatically enabled after this call. Requires UPDATE permission and the MANAGE_CAPPING_AND_LIMITATIONS privilege; using IP or LES_IP subjects requires additional permissions.
Path Params
bannerId integer required
Numeric ID of the banner to configure action capping for
42 Form Params
period integer required
Length of the capping time window, expressed in units defined by periodType
24 periodType string required
Unit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR
HOUR amount integer
Maximum number of conversions allowed within the specified period. Optional; if omitted the existing amount is preserved.
1000 evenDistribution boolean
When true, conversions are distributed evenly across the period instead of being counted as fast as possible
true subject string
Entity 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
USER_COOKIE actionId integer
Conversion action the rule counts, from the action list; omitted counts every action. Rules are keyed by subject and action, so a rule on another action is a separate rule. Not together with evenDistribution=true
25 Responses
200
Action capping set successfully
400
Invalid request parameters
401
Authentication error
403
Not enough permissions
404
Banner not found