Sets or updates the CPA price for a specific action within the campaign's pricing.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/campaignPricing/actionPricing.do
Sets or updates the CPA price for a specific action within the campaign's pricing. The action can be identified by either its name (actionName) or its unique key (actionKey). If campaign pricing does not yet exist, it is created with CPA pricing type and FIXED_PRICE payment model, which needs the CPA_PRICING_TYPE permission. If pricing already exists, it must be of CPA type; otherwise a 400 error is returned. price is required and must be between 0 and 1000000; a missing or out-of-range price is answered with a 400 naming it and nothing is written. Only an action the caller can see in the console's action list can be priced; any other is answered as an unknown one.
Path Params
campaignIdintegerrequired
Unique identifier of the campaign
2001
Form Params
pricenumberrequired
CPA price for the action, 0 to 1000000
2.50
actionNamestring
Name of the action to set pricing for (alternative to actionKey)
registration
actionKeystring
Unique key of the action to set pricing for (alternative to actionName)
reg_complete
Responses
200
Action pricing updated
400
Wrong request format or invalid parameters
401
Authentication error
403
Not enough permissions
404
No action the caller can see matches actionKey/actionName