Creates or replaces the click capping rule for a banner, limiting how many clicks are counted within a time window.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/click-capping/set.do
Creates or replaces the click capping rule for a banner, limiting how many clicks are counted within a time window. If a capping rule already exists for the given subject type, 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
bannerIdintegerrequired
Numeric ID of the banner to configure click capping for
42
Form Params
periodintegerrequired
Length of the capping time window, expressed in units defined by periodType
24
periodTypestringrequired
Unit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR
HOUR
amountinteger
Maximum number of clicks allowed within the specified period. Optional; if omitted the existing amount is preserved.
1000
evenDistributionboolean
When true, clicks are distributed evenly across the period instead of being counted as fast as possible
true
subjectstring
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