Update capping by ID
Edits one capping rule of an advertiser, campaign, banner or placement - the id from that entity's capping list.
https://YOUR-NETWORK-DOMAIN/rest-api/capping/{cappingId}.do Edits one capping rule of an advertiser, campaign, banner or placement - the id from that entity's capping list. Updates an existing capping object identified by its numeric ID, replacing its amount, period, period type, flat distribution flag, and optionally its subject type. The capping type must match the type of the existing record (e.g. CAMPAIGN_FREQUENCY, BANNER_CLICKS). All required fields must be provided; partial updates are not supported by this endpoint. Requires UPDATE permission on the advertiser, campaign, banner or placement the capping belongs to, and the permission of the capping type and subject. Writes also need the section permission enabled: MANAGE_INVENTORY_CAPPING for a placement capping, MANAGE_CAPPING_AND_LIMITATIONS for the others.
Path Params
cappingId integer required
Numeric ID of the capping record to update
501 Form Params
type string required
Type 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
CAMPAIGN_FREQUENCY amount integer required
Maximum number of events (impressions, clicks, or actions) allowed within the specified period
1000 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 flat boolean required
When true, events are distributed evenly (flat) across the period instead of being served/counted as fast as possible
true subject string
Entity used to identify unique users for capping. Optional; allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP
USER_COOKIE Responses
200
Capping updated successfully
400
Bad request — invalid or missing parameters
401
Authentication error
403
The caller may not change the entity the capping belongs to
404
No capping of this type has this id, or the entity it belongs to is deleted