Creates or updates the pricing configuration for the specified banner.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/pricing.do
Creates or updates the pricing configuration for the specified banner. Accepts price (double, 0 to 1000000), pricingType (CPM, CPC, or CPA), paymentModel (REVENUE_SHARE or FIXED_PRICE) and useGlobalActionPricing as form parameters. Only the fields sent are changed; the rest keep their stored values (an empty price clears the banner's own price). If no pricing record exists for this banner, a new one is created with FIXED_PRICE, CPM and no price for whatever is not sent. Requires UPDATE permission on the banner's advertiser and MANAGE_PRICING permission, and setting a pricing type (including the CPM of a new record) requires that type's permission, e.g. CPM_PRICING_TYPE.
Path Params
bannerIdintegerrequired
ID of the banner to update pricing for
3001
Form Params
paymentModelstring
Payment model (FIXED_PRICE, REVENUE_SHARE)
FIXED_PRICE
pricenumber
Price value in the selected pricing type; null when no global price is set
2.50
pricingTypestring
Pricing type (CPM, CPC, CPA, COST_PER_DAY, COST_PER_MONTH)
CPM
useGlobalActionPricingboolean
Whether to use global action pricing from the action definition
true
Responses
200
Banner pricing updated
400
Invalid request, e.g. a price out of range, naming the field