Browse the help center

Update banner frequency capping

Updates an existing frequency capping rule for a banner, modifying its amount, period, period type, distribution, or subject.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/frequency-capping/update.do

Updates an existing frequency capping rule for a banner, modifying its amount, period, period type, distribution, or subject. Fields not sent keep their value. It never creates a rule: when the banner has no rule of this type for the subject the answer is 404 naming it - create one with the matching set.do. If the capping was previously disabled, this call re-enables it. Rules are keyed by subject: without subject the banner's only rule of this type is updated (keeping its subject), otherwise the USER_COOKIE rule. 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 update frequency capping for

42

Form Params

amount integer

Maximum number of impressions allowed within the specified period. Optional; if omitted the existing amount is preserved.

1000

period integer

Length of the capping time window, expressed in units defined by periodType. Omitted keeps the current period

24

periodType string

Unit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit

HOUR

evenDistribution boolean

When true, impressions are distributed evenly across the period instead of being served as fast as possible

true

subject string

Entity 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

USER_COOKIE

Responses

200

Frequency capping updated successfully

400

Invalid request parameters

401

Authentication error

403

Not enough permissions

404

Banner not found, or it has no frequency capping rule for the subject

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.