GetCampaignsList (Live)
Returns a list of campaigns with brief information about them.
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 output parameters CampaignCurrencyandSourceCampaignID (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": "GetCampaignsList",
"param": [
(string)
...
]
}
The param
parameter is used only when making the request on behalf of an advertising agency. Use this parameter to specify an array of usernames (no more than 100) that you need to get a list of campaigns for. In all other cases, param
can be omitted, and the method will return a list of campaigns for the user who made the request.
Output data
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),
"SumAvailableForTransfer": (float),
"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. The value is in Yandex units. If the campaign operates in a real currency, the returned value is converted from the campaign's currency to units and mathematically rounded to the second decimal place (see the section Real currencies instead of Yandex units). |
|
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. The value is in Yandex units. If the campaign operates in a real currency, the returned value is converted from the campaign's currency to units and mathematically rounded to the second decimal place (see the section Real currencies instead of Yandex units). |
|
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. The value is in Yandex units. If the campaign operates in a real currency, the returned value is converted from the campaign's currency to units and mathematically rounded to the second decimal place (see the section Real currencies instead of Yandex units). |
|
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
['login1', 'login2']
PHP
array('login1', 'login2')
Perl
['login1', 'login2']