Skip to content

Get impressions ranges

POST
/impressions-ranges
curl --request POST \
--url https://portal.staging.arago-tech.com/impressions-ranges \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "amounts": [ 1000, 500, 1500 ], "currency": "CURRENCY_UNSPECIFIED" }'

Returns the impressions ranges

Returns impressions ranges from a slice of amounts in the given currency

Media typeapplication/json
Get impressions ranges

Returns impressions ranges from a slice of amounts in the given currency

object
amounts
required
Amounts

Slice of amounts to calculate the impressions ranges

Array<number>
Example
[
1000,
500,
1500
]
currency
required
Currency codes as specified in ISO 4217 buf:lint:ignore ENUM_VALUE_PREFIX

Currency ID based on ISO 4217 numeric codes.

string
default: CURRENCY_UNSPECIFIED
Allowed values: CURRENCY_UNSPECIFIED ALL DZD ARS AUD BSD BHD BDT AMD BBD BMD BTN BOB BWP BZD SBD BND MMK BIF KHR CAD CVE KYD LKR CLP CNY COP KMF CRC HRK CUP CZK DKK DOP SVC ETB ERN FKP FJD DJF GMD GIP GTQ GNF GYD HTG HNL HKD HUF ISK INR IDR IRR IQD ILS JMD JPY KZT JOD KES KPW KRW KWD KGS LAK LBP LSL LVL LRD LYD LTL MOP MWK MYR MVR MRO MUR MXN MNT MDL MAD OMR NAD NPR ANG AWG VUV NZD NIO NGN NOK PKR PAB PGK PYG PEN PHP QAR RUB RWF SHP STD SAR SCR SLL SGD VND SOS ZAR SSP SZL SEK CHF SYP THB TOP TTD AED TND UGX MKD EGP GBP TZS USD UYU UZS WST YER ZMK TWD SLE VES CUC ZWL BYN TMT GHS VEF SDG UYI RSD MZN AZN RON CHE CHW TRY XAF XCD XOF XPF XBA XBB XBC XBD XAU XDR XAG XPT XPD XUA ZMW SRD MGA COU AFN TJS AOA BYR BGN CDF BAM EUR MXV UAH GEL BOV PLN BRL CLF XSU USN JEP IMP GGP BTC
Example
978

A successful response.

Media typeapplication/json
object
impressions_ranges
Array<object>
Impressions Range

Impressions ranges for a budget in USD

object
min_impressions
Min Impressions
string format: uint64
max_impressions
Max Impressions
string format: uint64
Example
{
"impressions_ranges": [
{
"min_impressions": 400,
"max_impressions": 800
}
]
}

Bad request

Media typeapplication/json
object
Example
{
"error": {
"code": "BAD_REQUEST",
"details": [
{
"code": "MAX_ITEMS",
"field": "line_items",
"message": "value must contain no more than 3000 item(s)",
"params": {
"max": "3000"
}
}
],
"message": "Bad request"
}
}

Unauthorized

Media typeapplication/json
object
Example
{
"error": {
"code": "UNAUTHORIZED",
"message": "Unauthorized"
}
}

Internal server error

Media typeapplication/json
object
Example
{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}
}

An unexpected error response.

Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
any
Examplegenerated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}