Version 4 (deprecated)
Stable version of the Yandex.Direct API. Released in May, 2011.
Use of version 4 is restricted.
The following methods in version 4 have been deprecated. They will be completely disabled in the near future:
The following methods in version 4 have been disabled:
For information about the compatibility of methods between versions 4 and 5, see the Migration guide.
Address for requests in JSON format:
Address of the WSDL (for using the SOAP protocol):
Address for SOAP requests:
New in version 4
Account access may be suspended for advertisers using Yandex units who haven't made payments for over a year. In this case, calling API methods results in the error 54, and the web interface doesn't allow access to any operations except switching to a currency.
To continue using the API, you need to switch your account to a payment currency. To do this, click Switch now in the Yandex.Direct web interface. For more information about switching to a currency, see the Help for Yandex.Direct: Russian rubles or other currency.
The DisabledDomains campaign parameter now supports ad exchanges (SSPs).
The RelevantPhrasesBudgetLimit campaign parameter no longer supports the value –1. To allow unlimited spending on related keywords (within the campaign budget), use the value 100.
Changed the restrictions for keywords. Now an ad group can contain a maximum of 200 keywords, and the maximum length of each keyword is 4096 characters.
Beginning October 22, 2015, creating new SSL certificates is no longer available. Certificates created earlier can be used until they expire.
- Added a limitation for the CreateOrUpdateBanners method: no more than 1000 ads per call.
- Introduced the procedure for registering applications.
- Established requirements for applications that access the API.
All interaction with the API, including getting WSDL descriptions, is performed over the HTTPS protocol. HTTP access is forbidden.
On April 1, 2014, changes were made in data structures: the parameter type was changed for PhraseID. Details
- Block of finance methods:
- CreateInvoice — Generates an invoice for one or more campaigns.
- GetCreditLimits — Returns information about credit provided to an advertising agency for campaign payments.
- PayCampaigns — Pays for a campaign using credit.
TransferMoney — Transfers funds between campaigns.
The finance methods are protected by additional tokens (see Accessing finance methods).
- The GetChanges method checks for changes in campaigns and ads, in the region and time zone directories, and in Yandex.Catalog.
- The DeleteWordstatReport method deletes the report on keyword statistics.
- The UpdateClientInfo method changes clients' personal information, permissions and notification parameters.
- The GetSummaryStat method — Returns aggregate statistics for campaigns for each day of the specified time period.
- Substitution variables in website links (see the input parameters Param1 and Param2 in the CreateOrUpdateBanners method). The substitution variables are set for keywords, and are automatically inserted in links to the advertiser's website when displaying ads. This lets you modify links depending on the keyword that found the ad.
Changes to data structures
- The output parameter Strategy in the GetCampaignParams and GetCampaignsParams methods. Contains a structure with settings for the display strategy. The Strategy parameter replaced the AutoBudget, AutobudgetSum and AutobudgetMaxBid parameters, which were used in previous versions of the API and deprecated in version 4.
- The PhrasesType input parameter in the SetAutoPrice method. Sets conditions for selecting keywords to calculate the CPC for.
- The Scope input parameter in the SetAutoPrice method. Sets the parameters for calculating CPC for keywords that are disabled in the search but active in the Yandex Advertising Network.
- The GetPhrases input parameter in the GetBanners method. Specifies whether it is necessary to output a Phrases array in the response with data for all the ad's keywords.
- The MinusKeywords output parameter in the GetBanners method. Contains the negative keywords that are shared for all the ad's keywords (these are added to the negative keywords specified in the keywords).
Generated statistics reports are no longer overwritten when the number of reports reaches its limit (maximum of five). Previously, if there were five reports, calling the CreateNewWordstatReport method caused the oldest report to be deleted in order to create space for the new report. Now the method returns an error message in this situation. To free up space for a new report, use the DeleteWordstatReport method.