add: CpmBannerCampaign parameters
Request structure in JSON format:
{
"method": "add",
"params": {
"Campaigns": [{ /* CampaignAddItem */
...
"CpmBannerCampaign": { /* CpmBannerCampaignAddItem */
"BiddingStrategy": { /* CpmBannerCampaignStrategyAdd */
"Search": { /* CpmBannerCampaignSearchStrategyAdd */
"BiddingStrategyType": ( "SERVING_OFF" ) /* required */
}, /* required */
"Network": { /* CpmBannerCampaignNetworkStrategyAdd */
"BiddingStrategyType": ( "MANUAL_CPM" | ... | "WB_DECREASED_PRICE_FOR_REPEATED_IMPRESSIONS" ), /* required */
"WbMaximumImpressions": { /* StrategyWbMaximumImpressionsAdd */
"AverageCpm": (long), /* required */
"SpendLimit": (long) /* required */
},
"CpMaximumImpressions": { /* StrategyCpMaximumImpressionsAdd */
"AverageCpm": (long), /* required */
"SpendLimit": (long), /* required */
"StartDate": (string), /* required */
"EndDate": (string), /* required */
"AutoContinue": ( "YES" | "NO" ) /* required */
},
"WbDecreasedPriceForRepeatedImpressions": { /* StrategyWbDecreasedPriceForRepeatedImpressionsAdd */
"AverageCpm": (long), /* required */
"SpendLimit": (long) /* required */
},
"CpDecreasedPriceForRepeatedImpressions": { /* StrategyCpDecreasedPriceForRepeatedImpressionsAdd */
"AverageCpm": (long), /* required */
"SpendLimit": (long), /* required */
"StartDate": (string), /* required */
"EndDate": (string), /* required */
"AutoContinue": ( "YES" | "NO" ) /* required */
},
"WbAverageCpv" : { /* StrategyWbAverageCpvAdd */
"AverageCpv" : (long) /* required */,
"SpendLimit" : (long) /* required */
},
"CpAverageCpv" : { /* StrategyCpAverageCpvAdd */
"AverageCpv" : (long) /* required */,
"SpendLimit" : (long) /* required */,
"StartDate" : (string) /* required */,
"EndDate" : (string) /* required */,
"AutoContinue" : ( "YES" | "NO" ) /* required */
}
} /* required */
}, /* required */
"Settings": [{ /* CpmBannerCampaignSetting */
"Option": ( "ADD_METRICA_TAG" | ... | "REQUIRE_SERVICING" ), /* required */
"Value": ( "YES" | "NO" ) /* required */
}, ... ],
"CounterIds": { /* ArrayOfInteger */
"Items": [(int), ... ] /* required */
},
"FrequencyCap": { /* FrequencyCapSetting */
"Impressions": (int), /* required */
"PeriodDays": (int) /* required */ /* nillable */
},
"VideoTarget": ("VIEWS"|"CLICKS")
}
}, ... ] /* required */
}
}
Parameter |
Type |
Description |
Mandatory |
CpmBannerCampaignAddItem structure |
|||
|
CpmBannerCampaignStrategyAdd |
Display strategy. |
Yes |
|
array of CpmBannerCampaignSetting |
Array of settings that only accept the values YES or NO. |
No |
|
ArrayOfInteger |
The IDs of Yandex Metrica tags installed on the advertiser's website (see Yandex Metrica: evaluate your ad performance in the Yandex Direct Help). |
No |
|
FrequencyCapSetting |
Limits the frequency of impressions per user. If the structure is omitted, the frequency of impressions is not limited. |
No |
|
VideoTargetEnum |
Goal for video ads. Available values:
In the AUTOBUDGET_AVG_CPV and AUTOBUDGET_AVG_CPV_CUSTOM_PERIOD strategies, the value is reset to null. |
No |
CpmBannerCampaignSetting structure |
|||
|
CpmBannerCampaignSettingsEnum |
Setting name:
|
Yes |
|
YesNoEnum |
Setting value. |
Yes |
FrequencyCapSetting structure |
|||
|
int |
Maximum number of impressions per user during a period. |
Yes |
|
int, nillable |
Number of days from 1 to 30. null (nil) — The limit applies to the entire time the advertising campaign is running. |
Yes |
CpmBannerCampaignStrategyAdd structure |
|||
|
CpmBannerCampaignSearchStrategyAdd |
Display strategy in search results. |
Yes |
|
CpmBannerCampaignNetworkStrategyAdd |
Display strategy in ad networks. |
Yes |
CpmBannerCampaignSearchStrategyAdd structure |
|||
|
CpmBannerCampaignSearchStrategyTypeEnum |
The type of display strategy in search results. The only available value is SERVING_OFF. |
Yes |
CpmBannerCampaignNetworkStrategyAdd structure |
|||
|
CpmBannerCampaignNetworkStrategyTypeEnum |
The type of display strategy in ad networks:
|
Yes |
|
StrategyWbMaximumImpressionsAdd |
Parameters of the strategy Maximum impressions at minimal cost (weekly). |
When the |
|
StrategyCpMaximumImpressionsAdd |
Parameters of the strategy Maximum impressions at minimal cost (over a period). |
When the |
|
StrategyWbDecreasedPriceForRepeatedImpressionsAdd |
Parameters of the strategy Decrease cost for repeat impressions (weekly). |
When the |
|
StrategyCpDecreasedPriceForRepeatedImpressionsAdd |
Parameters of the strategy Decrease cost for repeat impressions (over a period). |
When the |
|
StrategyWbAverageCpvAdd |
Parameters of the strategy Maximum video views (weekly). |
When the |
|
Parameters of the strategy Maximum video views (for the period). |
When the |
|
StrategyWbMaximumImpressionsAdd structure |
|||
|
long |
The average CPM in the advertiser's currency, multiplied by 1,000,000. The minimum value for the average CPC is listed by currency in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
long |
The weekly budget in the advertiser's currency, multiplied by 1,000,000. The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
StrategyCpMaximumImpressionsAdd structure |
|||
|
long |
The average CPM in the advertiser's currency, multiplied by 1,000,000. The minimum value for the average CPC is listed by currency in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
long |
The budget for the period in the advertiser's currency, multiplied by 1,000,000. The minimum budget for each currency is listed in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
string |
Date of the start of the period, in the format YYYY-MM-DD. Can't be earlier than the current date or the campaign start date. |
Yes |
|
string |
Date of the end of the period, in the format YYYY-MM-DD. Can't be later than the campaign end date. |
Yes |
|
YesNoEnum |
Extend the campaign period automatically in order to use the remaining budget. |
Yes |
StrategyWbDecreasedPriceForRepeatedImpressionsAdd structure |
|||
|
long |
The average CPM in the advertiser's currency, multiplied by 1,000,000. The minimum value for the average CPC is listed by currency in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
long |
The weekly budget in the advertiser's currency, multiplied by 1,000,000. The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
StrategyCpDecreasedPriceForRepeatedimpressionsAdd structure |
|||
|
long |
The average CPM in the advertiser's currency, multiplied by 1,000,000. The minimum value for the average CPC is listed by currency in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
long |
The budget for the period in the advertiser's currency, multiplied by 1,000,000. The minimum budget for each currency is listed in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
string |
Date of the start of the period, in the format YYYY-MM-DD. Can't be earlier than the current date or the campaign start date. |
Yes |
|
string |
Date of the end of the period, in the format YYYY-MM-DD. Can't be later than the campaign end date. |
Yes |
|
YesNoEnum |
Extend the campaign period automatically in order to use the remaining budget. |
Yes |
StrategyWbAverageCpvAdd structure |
|||
|
long |
The average CPV in the advertiser's currency, multiplied by 1,000,000. The minimum value for the average CPC is listed by currency in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
long |
The weekly budget in the advertiser's currency, multiplied by 1,000,000. The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
StrategyCpAverageCpvAdd structure |
|||
|
long |
The average CPV in the advertiser's currency, multiplied by 1,000,000. The minimum value for the average CPC is listed by currency in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
long |
The budget for the period in the advertiser's currency, multiplied by 1,000,000. The minimum budget for each currency is listed in the currency reference. To get the list of currencies, use the Dictionaries.get method. |
Yes |
|
string |
Date of the start of the period, in the format YYYY-MM-DD. Can't be earlier than the current date or the campaign start date. |
Yes |
|
string |
Date of the end of the period, in the format YYYY-MM-DD. Can't be later than the campaign end date. |
Yes |
|
YesNoEnum |
Extend the campaign period automatically in order to use the remaining budget. |
Yes |