Creates a new action (conversion) capping rule for a campaign, limiting how many conversions are counted within a time window.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/action-capping/set.do
Creates a new action (conversion) capping rule for a campaign, limiting how many conversions are counted within a time window. A new capping record is always created (multiple rules can coexist for different subject types). The response JSON contains the newly created capping record ID in the 'id' field. Requires UPDATE permission and the MANAGE_CAPPING_AND_LIMITATIONS privilege; using IP or LES_IP subjects requires additional permissions.
Path Params
campaignIdintegerrequired
Numeric ID of the campaign to configure action capping for
2001
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 conversions allowed within the specified period. Optional; if omitted the capping has no amount limit.
1000
evenDistributionboolean
When true, conversions 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