GetCampaignsListFilter (Live)
Returns a list of campaigns that meet the filter conditions with brief information about these campaigns.
Alert
Disabled method. Use version 5 of the API.
For information about the compatibility of methods between versions Live 4 and 5, see the Migration guide.
Restrictions
Alert
This method only returns campaigns with the “Text & Image Ads” type. To work with all types of campaigns, use the Campaigns service in version 5 of the API. More information about campaign types
New in the Live 4 version
Added output parameters StrategyName and ContextStrategyName.
Added the Limit and Offset input parameters. They are used for paginated selection of campaigns from the database.
Added the CurrencySupported input parameter, along with the Currency, CampaignCurrency, BonusDiscount, and SourceCampaignID output parameters (also see the section Real currencies instead of Yandex units).
Added the DayBudgetEnabled output parameter.
Added the EnableRelatedKeywords output parameter.
Added the ExtendedAdTitleEnabled output parameter.
Input data
The input data structure in JSON is shown below.
{
"method": "GetCampaignsListFilter",
"param": {
/* GetCampaignsInfo */
"Logins": [
(string)
...
],
"Filter": {
/* CampaignsFilterInfo */
"StatusModerate": [
(string)
...
],
"IsActive": [
(string)
...
],
"StatusArchive": [
(string)
...
],
"StatusActivating": [
(string)
...
],
"StatusShow": [
(string)
...
]
},
"Limit": (int),
"Offset": (int),
"CurrencySupported": (string)
}
}
Parameters are described below.
Parameter |
Description |
Required |
GetCampaignsInfo object |
||
|
An array containing the usernames of clients (100 maximum) that you need to get a list of campaigns for. Only used for advertising agencies. Other users can omit this parameter. |
Yes, for advertising agencies |
|
The |
No |
|
Number of campaigns whose parameters should be output in the response (a number greater than zero). When combined with the |
No |
|
The number (position) of a campaign in the selection from the database (a number greater than zero). Campaigns are output to the response starting from the specified number, in the quantity in |
No |
|
Return monetary values in the campaign currency — Yes/No. When the value is No, values are converted from the campaign currency to Yandex units (see the section Real currencies instead of Yandex units). The default value is No. |
No |
CampaignsFilterInfo object |
||
|
Filter campaigns based on moderation status:
|
No |
|
Filter campaigns based on active status:
"Active" is defined as the campaign state in which ad impressions are turned on and off automatically, according to the time targeting settings or depending on the campaign balance. An "inactive" campaign means that ad impressions are disabled by the client or Yandex manager and can't be enabled automatically. |
No |
|
Filter campaigns based on whether they are archived:
|
No |
|
Filter campaigns based on activation status:
|
No |
|
Filter campaigns based on ad display:
|
No |
Output data
The method returns an array of ShortCampaignInfo
objects containing campaign summaries. The output data structure in JSON is shown below.
{
"data": [
{ /* ShortCampaignInfo */
"CampaignID": (int),
"Login": (string),
"Name": (string),
"StartDate": (date),
"StrategyName": (string),
"ContextStrategyName": (string),
"Sum": (float),
"Rest": (float),
"BonusDiscount": (float),
"SumAvailableForTransfer": (float),
"Currency": (string),
"Shows": (int),
"Clicks": (int),
"Status": (string),
"StatusShow": (string),
"StatusArchive": (string),
"StatusActivating": (string),
"StatusModerate": (string),
"IsActive": (string),
"ManagerName": (string),
"AgencyName": (string),
"CampaignCurrency": (string),
"SourceCampaignID": (int),
"DayBudgetEnabled": (string),
"EnableRelatedKeywords": (string),
"ExtendedAdTitleEnabled": (string)
}
...
]
}
Parameters are described below.
Parameter |
Description |
ShortCampaignInfo object |
|
|
The campaign ID. To create a campaign, it is set to 0; to change the parameters of an existing campaign, the campaign ID is specified. |
|
Login name of the campaign owner (username of the Yandex user that the ad campaign is run for). When creating a campaign, direct advertisers set their own Yandex username, while advertising agencies set their client's username. When getting campaign parameters, the username of the advertiser's chief representative is returned. |
|
The campaign name. |
|
Strategy on search. Acceptable values are listed below.
Strategies with manual bid management on search:
Automatic strategies on search:
|
|
Strategy in the Yandex Advertising Network. Acceptable values are listed below.
Strategies with manual bid management for the Yandex Advertising Network:
Automatic strategies in the Yandex Advertising Network: Warning Automatic strategies in the Yandex Advertising Network are available only if impressions are turned off for the search (ShowsDisabled strategy).
|
|
Date to start impressions, The date can be in the future. In this case, impressions begin on the specified date, if the moderator approved the ad and funds were transferred to the campaign balance. |
|
If the client has the shared account enabled, this is the total amount of funds spent over the campaign's existence. If the shared account is disabled, this is the amount of funds added to the campaign over the campaign's existence. When the value of the If the returned value is converted from the campaign's currency to Yandex units, it is mathematically rounded to the second decimal point (see the section Real currencies instead of Yandex units). If the value is expressed in a real currency, it does not include VAT. |
|
The current balance of the shared account + the amount refunded to the campaign (if the advertiser has the shared account enabled) or the current campaign balance (if the shared account is disabled). Note The amount of money returned for clicks that the system determines to be fraudulent or mistaken; this amount can be spent only within the same campaign. When the value of the If the returned value is converted from the campaign's currency to Yandex units, it is mathematically rounded to the second decimal point (see the section Real currencies instead of Yandex units). If the value is expressed in a real currency, it does not include VAT. |
|
The discount bonus in proportion to the current balance. Currently, the discount is not being applied. |
|
The amount available to transfer using the TransferMoney method. It is returned only if the shared account is not enabled. It may be less than the campaign balance. When the value of the If the returned value is converted from the campaign's currency to Yandex units, it is mathematically rounded to the second decimal point (see the section Real currencies instead of Yandex units). If the value is expressed in a real currency, it does not include VAT. |
|
The currency to use for monetary values in the response (bids, budgets, statistics). Acceptable values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN. If this parameter is omitted or NULL, Yandex units are used. |
|
The number of impressions since the campaign was launched. |
|
The number of clicks since the campaign was launched. |
|
The campaign status. For example: “Running impressions”, “Waiting for payment”, “Under moderation”, “Stopped”, “Running impressions. Activating”, “Archived campaign”, and others. |
|
Ad impressions are enabled for the campaign — Yes/No. Turning on and off is performed by methods StopCampaign and ResumeCampaign. Allowing displays at the campaign level does not mean that the ad is actually displayed. For impressions, other conditions must be met as well: sufficient funds, moderator approval of the campaign and ads, and enabled displays on the ad level (ResumeBanners method). An actual impression corresponds to the Yes value in the |
|
Campaign archive status:
Use the ArchiveCampaign method to transfer a campaign to the archive. Use the UnArchiveCampaign method to restore a campaign from the archive. |
|
Campaign activation status:
|
|
Moderation result:
Use the ModerateBanners method to submit a Creative for moderation. |
|
The campaign is active and ads are being displayed — Yes/No. "Active" is defined as the campaign state in which ad impressions are turned on and off automatically, according to the time targeting settings or depending on the campaign balance. An "inactive" campaign means that ad impressions are disabled and can't be enabled automatically. |
|
Name of the personal Yandex manager. It is filled in automatically for campaigns that have a personal manager. |
|
Name of the advertising agency. It is filled in automatically if the campaign was created by an agency. |
|
The currency the campaign operates in. Acceptable values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN. If the parameter is omitted or set to NULL, it means the campaign operates in Yandex units. |
|
ID of the unit-based source campaign, if the current campaign was created automatically when switching the client to using currency (see the section Switching to currency). Otherwise, omitted or set to NULL. |
|
Daily campaign budget management is available — Yes/No. |
|
Related keywords toolRelated keywords tool enabled — Yes/No. |
|
Substituting part of the ad text in the title is enabled — Yes/No. |
Examples of input data
Python
{
'Logins': ['agrom'],
'Filter': {
'IsActive': ['Yes'],
'StatusShow': ['Yes']
},
'Limit': 20,
'Offset': 1
}
PHP
array(
'Logins' => array('agrom'),
'Filter' => array(
'IsActive' => array('Yes'),
'StatusShow' => array('Yes')
),
'Limit' => 20,
'Offset' =1
)
Perl
{
'Logins' => ['agrom'],
'Filter' ={
'IsActive' => ['Yes'],
'StatusShow' => ['Yes']
},
'Limit' => 20,
'Offset' =1
}