Browse the help center

Update campaign country pricing

Sets or updates the price for a specific country within the campaign's pricing configuration.

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

Sets or updates the price for a specific country within the campaign's pricing configuration. The countryCode must be a valid ISO 3166 two-letter code. Use '*' as the country code to set the global price. For CPA pricing type, an action can be optionally specified by actionName or actionKey to set per-action country-level prices; only an action the caller can see in the console's action list can be named. On a campaign priced other than CPA, actionName/actionKey do not apply and are listed in ignoredFields. 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. The code is case-insensitive (us and US are the same row); Great Britain is stored and read back as UK, and GB is accepted for it. Campaign pricing must already exist before calling this endpoint.

Path Params

campaignId integer required

Unique identifier of the campaign

2001

countryCode string required

ISO 3166 two-letter country code, or '*' for global pricing

US

Form Params

price number required

Price for the country, 0 to 1000000

1.75

actionName string

Name of the action for CPA per-action country pricing (optional)

registration

actionKey string

Unique key of the action for CPA per-action country pricing (optional)

reg_complete

Responses

200

Country pricing updated

400

Wrong request format, unknown country, or pricing disabled

401

Authentication error

403

Not enough permissions

404

No action the caller can see matches actionKey/actionName

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.