GetBannerPhrasesFilter (Live)
Returns information about keywords and allows limiting the set of returned data.
What's new in Live version 4
Added output parameter StatusPaused.
Added output parameters ContextClicks and ContextShows.
Added input parameter Currency and output parameter Currency.
Added output parameter AdGroupID.
Added output parameter AuctionBids.
Restrictions
Retrieving keywords from archived campaigns is not available.
Alert
The method only supports “Text & Image Ads”. To work with keywords for all ad types, use the Keywords service in API version 5.
Input data
The structure of the input data in JSON format is shown below.
{
"method": "GetBannerPhrasesFilter",
"param": {
/* BannerPhrasesFilterRequestInfo */
"BannerIDS": [
(long)
...
],
"FieldsNames": [
(string)
...
],
"ConsiderTimeTarget": (string),
"RequestPrices": (string),
"Currency": (string)
}
}
The parameters are described below.
|
Parameter |
Description |
Required |
|
BannerPhrasesFilterRequestInfo object |
||
|
|
An array of ad IDs (up to 1000). |
Yes |
|
|
An array containing the names of parameters to return in the response. If not specified, all available parameters are returned. The parameters |
No |
|
|
Return statistics and prices — Yes/No. The default value is Yes. Statistics and prices are returned in the parameters |
No |
|
|
Calculate impression position prices without considering bids from competitors' ads that are paused (paused according to a schedule) — Yes/No. The default value is No (all ads are considered). |
No |
|
|
The currency in which bids should be expressed in the response. Possible values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN. The value must match the campaign currency. If the parameter is absent or equals NULL, Yandex units are assumed. In this case, if the campaign uses a real currency, the returned values are converted from the campaign currency to Yandex units. If the value is not NULL and does not match the currency of the campaign (or one of the campaigns), an error with code 245 is returned. |
No |
Output data
The method returns an array of BannerPhraseInfo objects with information about keywords. The structure of the output data in JSON format is shown below.
Note
The following parameters are in the WSDL but are only returned in the response of the GetForecast method: FirstPlaceClicks: (int), PremiumClicks: (int), CTR: (float), FirstPlaceCTR: (float), PremiumCTR: (float)
{
"data": [
{ /* BannerPhraseInfo */
"BannerID": (long),
"CampaignID": (int),
"AdGroupID": (long),
"PhraseID": (long),
"Phrase": (string),
"IsRubric": (string),
"Price": (float),
"ContextPrice": (float),
"AutoBroker": (string),
"UserParams": {
/* PhraseUserParams */
"Param1": (string),
"Param2": (string)
}
"StatusPhraseModerate": (string),
"AutoBudgetPriority": (string),
"Clicks": (int),
"Shows": (int),
"ContextClicks": (int),
"ContextShows": (int),
"Min": (float),
"Max": (float),
"PremiumMin": (float),
"PremiumMax": (float),
"LowCTRWarning": (string),
"LowCTR": (string),
"ContextLowCTR": (string),
"Coverage": [
{ /* CoverageInfo */
"Probability": (float),
"Price": (float)
}
...
],
"ContextCoverage": [
{ /* CoverageInfo */
"Probability": (float),
"Price": (float)
}
...
],
"Prices": [
(float)
...
],
"CurrentOnSearch": (float),
"MinPrice": (float),
"StatusPaused": (string),
"Currency": (string),
"AuctionBids": [
{ /* PhraseAuctionBids */
"Position": (string),
"Bid": (float),
"Price": (float)
}
...
]
}
...
]
}
The parameters are described below.
|
Parameter |
Description |
|
BannerPhraseInfo object |
|
|
|
Ad ID. |
|
|
Campaign ID. |
|
|
Ad group ID. |
|
|
Keyword ID. |
|
|
Keyword. May contain negative keywords, which are specified with a minus sign before the word, for example, [lightning -thunder -rain]. Negative keywords shared by multiple keywords should preferably be set in the The length of a keyword is up to 4,096 characters. The “!” operator before a negative keyword is not counted in the keyword length (the sequence “-!” is counted as one character). Up to 7 words in a keyword, not counting stop words and negative keywords. Each word and negative keyword is up to 35 characters, not counting the minus sign before a negative keyword. |
|
|
Indicates that the keyword is a Yandex Catalog category. Always contains the value No. |
|
|
Bid on Yandex Search (in the currency specified in the |
|
|
Bid in the Yandex Advertising Network (YAN) (in the currency specified in the The parameter is available for modification in the following cases:
|
|
|
Indicates that autobroker is enabled. Always contains the value Yes. |
|
|
|
|
|
Keyword review result:
|
|
|
Keyword priority when using automatic strategies. Possible values:
|
|
|
Number of clicks on all ads in the group served on search for this keyword. Calculated over 28 days from the current date. Only days with at least one ad click are included in the calculation. |
|
|
Number of impressions of all ads in the group for this keyword on search. Calculated over 28 days from the current date. Only days with at least one impression for this keyword are included in the calculation. |
|
|
Number of clicks on all ads in the group served in the Yandex Advertising Network for this keyword. Calculated over 28 days from the current date. Only days with at least one ad click are included in the calculation. |
|
|
Number of impressions of all ads in the group for this keyword in the Yandex Advertising Network. Calculated over 28 days from the current date. Only days with at least one impression for this keyword are included in the calculation. |
|
|
Price that ensures most ads in the group are shown in the Guaranteed placement block — in the currency specified in the |
|
|
Price that ensures most ads in the group are shown in the first position in the Guaranteed placement block — in the currency specified in the |
|
|
Price that ensures most ads in the group are shown in Premium placement — in the currency specified in the |
|
|
Price that ensures most ads in the group are shown in the first position in Premium placement — in the currency specified in the |
|
|
The keyword has a low CTR and may be disabled soon — Yes/No. Alert This parameter is no longer relevant for new keywords, since keywords are no longer disabled for low CTR. |
|
|
The keyword has been disabled on search due to a low CTR — Yes/No. Alert This parameter is no longer relevant for new keywords, since keywords are no longer disabled for low CTR. |
|
|
The keyword has been disabled on YAN sites due to a low CTR — Yes/No. Alert This parameter is no longer relevant for new keywords, since keywords are no longer disabled for low CTR. |
|
|
Array of Alert This parameter is deprecated and should not be used for bid selection. |
|
|
Array of The parameter is useful for bid selection for keywords. |
|
|
Array of minimum bids for all positions in Premium placement and in the Guaranteed placement block (in the currency specified in the |
|
|
The final cost per click after autobroker is applied (in the currency specified in the If the ad is not being served on search for this keyword, or the keyword is disabled on search due to a low CTR, the parameter returns NULL. |
|
|
Minimum price set individually for each advertiser (in the currency specified in the |
|
|
Impressions for the keyword are paused — Yes/No. Impressions can be paused and resumed using the Keyword (Live) method. |
|
|
The currency in which bids are expressed. Possible values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN. If the parameter is absent or equals NULL, Yandex units are assumed. |
|
|
Array of |
|
CoverageInfo object |
|
|
|
Impression frequency at the bid specified in the In the |
|
|
Bid for which the |
|
PhraseUserParams object |
|
|
|
Value of the |
|
|
Value of the |
|
PhraseAuctionBids object |
|
|
|
Impression position: P_mn_, where
For example, P12 — second position in Premium placement, P21 — first position in the Guaranteed placement block. |
|
|
Minimum bid for the specified position (in the currency specified in the |
|
|
Charged price for the specified position (in the currency specified in the |
|
Notes |
|
|
Input data examples
Python
{
'BannerIDS': [20155899],
'FieldsNames': ['Phrase','Price','Phrase','MinPrice','Clicks'],
'RequestPrices': 'Yes',
'ConsiderTimeTarget': 'Yes'
}
PHP
array(
'BannerIDS' => array(20155899),
'FieldsNames' => array('Phrase','Price','Phrase','MinPrice','Clicks'),
'RequestPrices' => 'Yes',
'ConsiderTimeTarget' ='Yes'
)
Perl
{
'BannerIDS' => [20155899],
'FieldsNames' => ['Phrase','Price','Phrase','MinPrice','Clicks'],
'RequestPrices' => 'Yes',
'ConsiderTimeTarget' ='Yes'
}