Получение цен для кампании
Deprecated
Возвращает бюджеты для рекламной кампании. Для кампаний с mapsOnly будет возвращаться только MINIMAL бюджет.
Request
GET
https://geoadv-api.yandex.ru/priority/v4/campaign-price
Query parameters
|
Name |
Description |
|
campaignId |
Type: number ID рекламной кампании |
Responses
200 OK
Возращает бюджеты для рекламной кампании
Body
application/json
{
"currency": "rub",
"fixedUntil": "example",
"price": {
"MINIMAL": {
"30": {
"amount": 0.5,
"durationPercentDiscount": 0.5,
"amountWithoutPromoDiscount": 0.5,
"promoDiscount": 0.5,
"promoPlusDays": 0.5,
"promoBonus": 0.5
},
"90": null,
"180": null,
"360": null,
"monthPrediction": 0.5
},
"OPTIMAL": null,
"MAXIMAL": null
}
}
|
Name |
Description |
|
currency |
Type: string Валюта Enum: |
|
fixedUntil |
Type: string Дата, до которой цена зафиксирована Example: |
|
price |
Type: CampaignPricePrice Бюджеты. Для рекламных кампаний с mapsOnly будет возвращаться только MINIMAL бюджет Example
|
DurationPrice
|
Name |
Description |
|
amount |
Type: number Цена за период с примененным промокодом |
|
amountWithoutPromoDiscount |
Type: number Стоимость без учета промокода |
|
durationPercentDiscount |
Type: number Скидка за длительность в процентах |
|
promoBonus |
Type: number Дополнительный бюджет в деньгах по промокоду |
|
promoDiscount |
Type: number Скидка в деньгах по промокоду |
|
promoPlusDays |
Type: number Количество дополнительных дней рекламы по промокоду |
Example
{
"amount": 0.5,
"durationPercentDiscount": 0.5,
"amountWithoutPromoDiscount": 0.5,
"promoDiscount": 0.5,
"promoPlusDays": 0.5,
"promoBonus": 0.5
}
DurationWith30
|
Name |
Description |
|
180 |
Type: DurationPrice Example
|
|
30 |
Type: DurationPrice Example
|
|
360 |
Type: DurationPrice Example
|
|
90 |
Type: DurationPrice Example
|
|
monthPrediction |
Type: number Прогноз потенциальных клиентов (тех, кто перейдет в карточку организации на Картах) |
Example
{
"30": {
"amount": 0.5,
"durationPercentDiscount": 0.5,
"amountWithoutPromoDiscount": 0.5,
"promoDiscount": 0.5,
"promoPlusDays": 0.5,
"promoBonus": 0.5
},
"90": null,
"180": null,
"360": null,
"monthPrediction": 0.5
}
CampaignPricePrice
Бюджеты. Для рекламных кампаний с mapsOnly будет возвращаться только MINIMAL бюджет
|
Name |
Description |
|
MINIMAL |
Type: DurationWith30 Example
|
|
MAXIMAL |
Type: DurationWith30 Example
|
|
OPTIMAL |
Type: DurationWith30 Example
|
Example
{
"MINIMAL": {
"30": {
"amount": 0.5,
"durationPercentDiscount": 0.5,
"amountWithoutPromoDiscount": 0.5,
"promoDiscount": 0.5,
"promoPlusDays": 0.5,
"promoBonus": 0.5
},
"90": null,
"180": null,
"360": null,
"monthPrediction": 0.5
},
"OPTIMAL": null,
"MAXIMAL": null
}
500 Internal Server Error
Непредвиденная ошибка
No longer supported, please use an alternative and newer version.