Update campaign pricing
Updates pricing settings for the specified campaign, or creates a new pricing record with system defaults if one does not yet exist.
https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/pricing.do Updates pricing settings for the specified campaign, or creates a new pricing record with system defaults if one does not yet exist. Accepts price, paymentModel (FIXED_PRICE or REVENUE_SHARE), pricingType (CPM, CPC, CPA), and optimization parameters such as estimatedCtr, estimatedConversionRate, burnUpPeriod, startUpPeriod, minClicks, minConversions and useGlobalActionPricing. Only the fields sent are changed; the rest keep their stored values. Switching pricingType, or creating the pricing record (CPM when pricingType is not sent), needs that pricing type's permission and, on a switch, as in the console, deletes the campaign's country and action prices and its global price (send price in the same call to set the new one). estimatedCtr and estimatedConversionRate are fractions between 0 and 1 (0.05 means 5%); price must be between 0 and 1000000; burnUpPeriod must be >= startUpPeriod. A value out of range is answered with 400 naming the field.
Path Params
campaignId integer required
Unique identifier of the campaign whose pricing to update
2001 Form Params
burnUpPeriod integer
Burn-up period in hours for eCPM optimization
24 burnUpSubPeriod integer
Burn-up sub-period length in hours
6 burnUpSubPeriodWeighting string
Weighting type for burn-up sub-periods
SINGLET estimatedConversionRate number
Estimated impression-to-conversion rate (I2C) as a fraction from 0 to 1, not a percentage — 0.002 means 0.2%. Used to estimate eCPM of CPA campaigns under eCPM optimization; omit to keep the current value (a new pricing record starts from the network default)
0.002 estimatedCtr number
Estimated click-through rate as a fraction from 0 to 1, not a percentage — 0.005 means 0.5% CTR. Used to estimate eCPM of CPC campaigns under eCPM optimization; omit to keep the current value (a new pricing record starts from the network default)
0.005 minClicks integer
Minimum number of clicks before optimization kicks in
50 minConversions integer
Minimum number of conversions before optimization kicks in
10 paymentModel string
Payment model (FIXED_PRICE, REVENUE_SHARE)
FIXED_PRICE price number
Price value in the selected pricing type; null when no global price is set
2.50 pricingType string
Pricing type (CPM, CPC, CPA, COST_PER_DAY, COST_PER_MONTH)
CPM startUpPeriod integer
Start-up period in hours for eCPM optimization; must not exceed burnUpPeriod
12 useGlobalActionPricing boolean
Whether to use global action pricing from the action definition
true Responses
200
Campaign pricing updated
400
Wrong request format or invalid parameters
401
Authentication error
403
Not enough permissions, including the permission of a pricingType being switched to
404
Not found — resource does not exist