Browse the help center

Create campaign capping

Creates a new capping rule for the specified campaign, controlling how frequently events (impressions, clicks, or actions) occur within a time window.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/capping/{campaignId}.do

Creates a new capping rule for the specified campaign, controlling how frequently events (impressions, clicks, or actions) occur within a time window. The capping type determines which event category is capped (e.g. CAMPAIGN_FREQUENCY for impressions, CAMPAIGN_CLICKS for clicks). The response JSON carries the new record, with its assigned id, under capping. Requires UPDATE permission on the campaign's advertiser, MANAGE_CAPPING_AND_LIMITATIONS enabled, and the permission of the capping type and subject.

Path Params

campaignId integer required

Numeric ID of the campaign to add the capping rule to

2001

Form Params

type string required

Type of the capping to create. Only campaign types are accepted: CAMPAIGN_REQUEST, CAMPAIGN_FREQUENCY, CAMPAIGN_CLICKS, CAMPAIGN_ACTIONS, CAMPAIGN_NO_CLICK, CAMPAIGN_DSP_FREQUENCY and CAMPAIGN_DSP_FREQUENCY_MONTH (period=1, periodType DAY or MONTH, flat=false), CAMPAIGN_DSP_RECENCY (amount=1, periodType MINUTE, period 1..60, flat=false). BANNER_*, PLACEMENT_* and ADVERTISER_* values are listed by the shared enum but rejected with 'Capping type is incompatible with entity'

CAMPAIGN_FREQUENCY

amount integer required

Maximum number of events 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 created: {success, capping:{id, type, amount, period, periodType, flat, subject, ...}}

400

Bad request — invalid or missing parameters

401

Authentication error

403

Forbidden — insufficient permissions

404

Not found — resource does not exist

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.