Batch update banner country pricing from CSV
Batch-updates country-level pricing for the specified banner from a CSV of rows mapping country codes to prices, sent either as the countryPrices file (multipart) or as its text in countryPricesCsv - exactly one of the two.
https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/pricing/batch.do Batch-updates country-level pricing for the specified banner from a CSV of rows mapping country codes to prices, sent either as the countryPrices file (multipart) or as its text in countryPricesCsv - exactly one of the two. The upload adds and updates prices; prices of countries not in the file are kept. csvErrors and csvWarnings list, by line number, the rows that were not applied - such a row changes nothing, and the rest of the file is still applied. A price may use a decimal comma in a semicolon- or tab-separated file. applied lists every price that was stored as {line, country, actionId (CPA action columns only), price}; rejected lists every line, or part of a line, that was not, as {line, reason} (line 1 is the header). The banner must already have a base pricing record configured. Requires UPDATE permission on the banner's advertiser and MANAGE_PRICING permission.
Path Params
bannerId integer required
ID of the banner to batch-update country pricing for
3001 Query Params
countryPricesCsv string
The CSV's text, for a client that cannot upload a file; send this or countryPrices
Country,Price
US,1.50
DE,0.90 Body
A multipart form: countryPrices (file).
Responses
200
Batch update result: applied and rejected lines, plus the legacy csvErrors and csvWarnings
400
Invalid request or no base pricing yet
401
Authentication error
403
Not enough permissions
404
Banner not found