Browse the help center

Create advertiser capping

Creates a new capping rule for the specified advertiser, typically used for advertiser-level frequency capping across all campaigns.

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

Creates a new capping rule for the specified advertiser, typically used for advertiser-level frequency capping across all campaigns. The capping type should be ADVERTISER_FREQUENCY for advertiser-level rules. The response JSON carries the new record, with its assigned id, under capping. Requires UPDATE permission on the advertiser, MANAGE_CAPPING_AND_LIMITATIONS enabled, and the permission of the capping type and subject.

Path Params

advertiserId integer required

Numeric ID of the advertiser to add the capping rule to

1001

Form Params

type string required

Type of the capping to create. Only ADVERTISER_FREQUENCY is accepted; any other value of the shared enum is rejected with 'Capping type is incompatible with entity'

ADVERTISER_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.