get
Returns reference data: regions, time zones, currency exchange rates, metro stations, restrictions on parameter values, ad exchanges (SSPs), Crypta segments for user profile targeting, and other information.
Request
Request structure in JSON format:
{
"method": "get",
"params": { /* params */
"DictionaryNames": [( "Currencies"
| "MetroStations"
| "GeoRegions"
| "GeoRegionNames"
| "TimeZones"
| "Constants"
| "AdCategories"
| "OperationSystemVersions"
| "ProductivityAssertions"
| "SupplySidePlatforms"
| "Interests"
| "AudienceCriteriaTypes"
| "AudienceDemographicProfiles"
| "AudienceInterests"
| "FilterSchemas"), ... ] /* required */
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / GetRequest (for SOAP) |
|||
|
array of DictionaryNameEnum |
Names of the reference lists to get. |
Yes |
Response
Response structure in JSON format:
{
"result": {
"Currencies": [{ /* CurrenciesItem */
"Currency": (string), /* required */
"Properties": [{ /* ConstantsItem */
"Name": (string), /* required */
"Value": (string) /* required */
}, ... ] /* required */
}, ... ],
"MetroStations": [{ /* MetroStationsItem */
"GeoRegionId": (long), /* required */
"MetroStationId": (long), /* required */
"MetroStationName": (string) /* required */
}, ... ],
"GeoRegions": [{ /* GeoRegionsItem */
"GeoRegionId": (long), /* required */
"GeoRegionName": (string), /* required */
"GeoRegionType": (string), /* required */
"ParentId": (long) /* nillable */
}, ... ],
"GeoRegionNames": [{ /* GeoRegionNamesItem */
"GeoRegionId": (long), /* required */
"GeoRegionName": (string), /* required */
"GeoRegionType": (string), /* required */
}, ... ],
"TimeZones": [{ /* TimeZonesItem */
"TimeZone": (string), /* required */
"TimeZoneName": (string), /* required */
"UtcOffset": (int) /* required */
}, ... ],
"Constants": [{ /* ConstantsItem */
"Name": (string), /* required */
"Value": (string) /* required */
}, ... ],
"AdCategories": [{ /* AdCategoriesItem */
"AdCategory": (string), /* required */
"Description": (string), /* required */
"Message": (string) /* required */
}, ... ],
"OperationSystemVersions": [{ /* OperationSystemVersionsItem */
"OsName": (string), /* required */
"OsVersion": (string) /* required */
}, ... ],
"SupplySidePlatforms": [{ /* SupplySidePlatformsItem */
"Title": (string) /* required */
}, ... ],
"Interests": [{ /* InterestsItem */
"InterestId": (long),
"ParentId": (long), /* nillable */
"Name": (string),
"IsTargetable": ( "YES" | "NO" )
}, ... ],
"AudienceCriteriaTypes": [{ /* AudienceCriteriaTypesItem */
"Type": (string), /* required */
"BlockElement": (string), /* required */
"Name": (string), /* required */
"Description": (string), /* required */
"CanSelect": ( "ALL" | "EXCEPT_ALL" ) /* required */
}, ... ],
"AudienceDemographicProfiles": [{ /* AudienceDemographicProfilesItem */
"Id": (long), /* required */
"Type": (string), /* required */
"Name": (string), /* required */
"Description": (string) /* required */
}, ... ],
"AudienceInterests": [{ /* AudienceInterestsItem */
"InterestKey": (long), /* required */
"Id": (long), /* required */
"ParentId": (long), /* required */
"Name": (string), /* required */
"Description": (string), /* required */
"InterestType": ( "SHORT_TERM" | "LONG_TERM" | "ANY" ) /* required */
}, ... ],
"FilterSchemas": [{ /* FilterSchemasItem */
"Name": (string), /* required */
"Fields": [{ /* required */
"Name": (string), /* required */
"Type": ("Enum", "Number", "String"), /* required */
"EnumProps": {
"Values": { /* required */
"Items": [(string)] /* required */
},
},
"NumberProps": {
"Min": (decimal), /* required */
"Max": (decimal), /* required */
"Precision": (integer) /* required */
},
"StringProps": {
"MaxLength": (integer), /* required */
"MinLength": (integer) /* required */
},
"Operators": [{ /* required */
"MaxItems": (integer), /* required */
"Type": ("CONTAINS_ANY" | "EQUALS_ANY" | "EXISTS" | "GREATER_THAN" | "IN_RANGE" | "LESS_THAN" | "NOT_CONTAINS_ALL") /* required */
}, ...]
}, ... ]
}
}
Parameter |
Type |
Description |
result structure (for JSON) / GetResponse (for SOAP) |
||
|
array of AdCategoriesItem |
Special categories of advertised products and services. See the section Special category. |
|
array of ConstantsItem |
Restrictions on parameter values. |
|
array of CurrenciesItem |
Currency exchange rates, currency parameters, and restrictions. |
|
array of GeoRegionsItem |
Regions available for targeting. |
|
array of GeoRegionNamesItem |
Directory of names of regions. |
|
array of MetroStationsItem |
Metro stations (only for Moscow, Saint Petersburg, and Kiev). |
|
array of OperationSystemVersionsItem |
Versions of operating systems for advertising mobile apps. |
|
array of ProductivityAssertionsItem |
This parameter is obsolete and is not returned. |
|
array of TimeZonesItem |
Time zones. |
|
array of SupplySidePlatformsItem |
Ad exchanges (SSPs). |
|
array of InterestsItem |
Interests in mobile app categories. |
|
array of AudienceCriteriaTypesItem |
Demographic and behavioral characteristics. |
|
array of AudienceDemographicProfilesItem |
Segments based on demographic and behavioral characteristics for targeting by user profile. |
|
array of AudienceInterestsItem |
Segments based on user interests for targeting by user profile. |
FilterSchemas |
array of FilterSchemasItem |
Names of schemas for creating filters. |
AdCategoriesItem structure |
||
|
string |
Designates a special category (the "AdCategories" ad parameter). |
|
string |
A short description of the special category in the language specified in the HTTP Accept-Language header in the request. |
|
string |
The warning text automatically added to the ad, in the language specified in the HTTP Accept-Language header in the request (see the section Warnings and age limits in ads in ads in the Yandex Direct Help). |
ConstantsItem structure (for restrictions on parameter values) |
||
|
string |
Name of the restriction:
|
|
string |
The limit value. |
CurrenciesItem structure |
||
|
string |
Designates the currency (the "Currency" campaign parameter). |
|
array of ConstantsItem |
Name and value of the currency parameter. |
ConstantsItem structure (for currency parameters) |
||
|
string |
Name of the currency parameter:
See the examples. |
|
string |
Value of the currency parameter. Alert All returned monetary values are integers — the result of multiplying the bid or CPC by 1,000,000. |
GeoRegionsItem structure |
||
|
long |
ID of the region. |
|
string |
Name of the region in the language specified in the HTTP Accept-Language header in the request. |
|
string |
The type of region: World, Continent, Region, Country, Administrative area, District, City, City district, Village. |
|
long, nillable |
ID of the higher-level region. |
GeoRegionNamesItem structure |
||
|
long |
ID of the region. |
|
string |
Name of the region in the language specified in the HTTP Accept-Language header in the request. |
|
string |
The type of region: World, Continent, Region, Country, Administrative area, District, City, City district, Village. |
MetroStationsItem structure |
||
|
long |
ID of the region. |
|
long |
ID of the subway station (the "MetroStationId" vCard parameter). |
|
string |
Name of the station (in Russian). |
OperationSystemVersionsItem structure |
||
|
string |
Name of the operating system. |
|
string |
Version of the operating system. |
TimeZonesItem structure |
||
|
string |
Designates the time zone (the "TimeZone" campaign parameter). |
|
string |
Description of the time zone in the language specified in the HTTP Accept-Language header in the request. |
|
int |
The offset from UTC in seconds. |
SupplySidePlatformsItem structure |
||
|
string |
The name of an ad exchange. |
InterestsItem structure |
||
|
long |
ID of an app category interest. |
|
long, nillable |
ID of the higher-level interest. |
|
string |
Name of the interest in the language specified in the HTTP Accept-Language header in the request. |
|
YesNoEnum |
Indicates whether the interest ID can be used in audience targets. |
AudienceCriteriaTypesItem structure |
||
|
string |
ID of a demographic or behavioral characteristic. |
|
string |
The category that this characteristic belongs to:
|
|
string |
Name of the characteristic in the language specified in the HTTP Accept-Language header in the request. |
|
string |
Description of the characteristic in the language specified in the HTTP Accept-Language header in the request. |
|
CanSelectEnum |
Whether all segments for this characteristic can be specified in a user selection rule (for example, you aren't allowed to specify all age groups, but you can specify all professions). |
AudienceDemographicProfilesItem structure |
||
|
long |
ID of a demographic or behavioral segment. |
|
string |
ID of a demographic or behavioral characteristic (the "Type" parameter in the |
|
string |
Name of the segment in the language specified in the HTTP Accept-Language header in the request. |
|
string |
Description of the segment in the language specified in the HTTP Accept-Language header in the request. |
AudienceInterestsItem structure |
||
|
long |
ID of a user interest. |
|
long |
ID of a user interest segment. The segment ID consists of a prefix indicating the type of interest and the ID of the interest. For example, the |
|
long |
ID of the higher-level segment. |
|
string |
Name of the segment in the language specified in the HTTP Accept-Language header in the request. |
|
string |
Description of the segment in the language specified in the HTTP Accept-Language header in the request. |
|
InterestTypeEnum |
Type of interest: short-term, long-term, or for any period. |
FilterSchemasItem structure |
||
|
string |
The name of the schema for creating filters. |
|
array of FilterSchemaItemFields |
Schema parameters. |
FilterSchemasItemFields structure (for filter creation schema parameters) |
||
|
string |
The name of the parameter. |
|
FieldTypeEnum |
Parameter type: Enum, Number, String. |
EnumProps |
EnumFieldStructure |
Structure of the Enum type parameter. |
NumberProps |
NumberFieldStructure |
Structure of the Number type parameter. |
StringProps |
StringFieldStructure |
Structure of the String type parameter. |
Operators |
array of OperatorStructure |
Operators. |
EnumFieldStructure structure (for the structure of the Enum type parameter) |
||
Values |
EnumFieldStructureItem |
Structure of values of the Enum type parameter. |
EnumFieldStructureItem structure (for the values of the Enum type parameter) |
||
Items |
array of strings |
Array of values. |
NumberFieldStructure structure (for the structure of the Number type parameter) |
||
Min |
decimal |
Minimum value. |
Max |
decimal |
Maximum value. |
Precision |
integer |
Precision. |
StringFieldStructure structure (for the structure of the String type parameter) |
||
MaxLength |
integer |
The maximum length of the returned string. |
MinLength |
integer |
The minimum length of the returned string. |
OperatorStructure structure (for the structure of the operator) |
||
MaxItems |
integer |
The maximum number of elements. |
Type |
OperatorEnum |
Operator: CONTAINS_ANY, EQUALS_ANY, EXISTS, GREATER_THAN, IN_RANGE, LESS_THAN, NOT_CONTAINS_ALL. |
Examples
Sample request: getting the currency reference list
{
"method": "get",
"params": {
"DictionaryNames": [ "Currencies" ]
}
}
Response example
{
"result": {
"Currencies": [
{
"Currency":"RUB",
"Properties": [
{ "Name": "FullName", "Value": "российские рубли" },
{ "Name": "AutobudgetAvgCpaWarning", "Value": "XXXX" },
{ "Name": "BidIncrement", "Value": "100000" },
{ "Name": "MaxAutobudget", "Value": "XXXX" },
{ "Name": "MaximumBid", "Value": "25000000000" },
{ "Name": "MaximumCPM", "Value": "3000000000" },
{ "Name": "MaxDailyBudgetForPeriod", "Value": "XXXX" },
{ "Name": "MaximumPayForConversionCPA", "Value": "5000000000" },
{ "Name": "MinimumAverageCPA", "Value": "900000" },
{ "Name": "MinimumAverageCPC", "Value": "900000" },
{ "Name": "MinimumBid", "Value": "300000" },
{ "Name": "MinCpcCpaPerformance", "Value": "XXXX" },
{ "Name": "MinimumCPM", "Value": "5000000" },
{ "Name": "MinimumDailyBudget", "Value": "300000000" },
{ "Name": "MinDailyBudgetForPeriod", "Value": "XXXX" },
{ "Name": "MinimumPayment", "Value": "300000000" },
{ "Name": "MinimumPayForConversionCPA", "Value": "900000" },
{ "Name": "MinimumTransferAmount", "Value": "1000000000" },
{ "Name": "MinimumWeeklySpendLimit", "Value": "300000000" }
]
},
...
{
"Currency": "EUR",
"Properties": [
{ "Name": "FullName", "Value": "евро" },
{ "Name": "AutobudgetAvgCpaWarning", "Value": "XXXX" },
{ "Name": "BidIncrement", "Value": "10000" },
{ "Name": "MaxAutobudget", "Value": "XXXX" },
{ "Name": "MaximumBid", "Value": "500000000" },
{ "Name": "MaximumCPM", "Value": "44000000" },
{ "Name": "MaxDailyBudgetForPeriod", "Value": "XXXX" },
{ "Name": "MaximumPayForConversionCPA", "Value": "170000000" },
{ "Name": "MinimumAverageCPA", "Value": "30000" },
{ "Name": "MinimumAverageCPC", "Value": "30000" },
{ "Name": "MinimumBid", "Value": "10000" },
{ "Name": "MinCpcCpaPerformance", "Value": "XXXX" },
{ "Name": "MinimumCPM", "Value": "70000" },
{ "Name": "MinimumDailyBudget", "Value": "10000000" },
{ "Name": "MinDailyBudgetForPeriod", "Value": "XXXX" },
{ "Name": "MinimumPayment", "Value": "15000000" },
{ "Name": "MinimumPayForConversionCPA", "Value": "30000" },
{ "Name": "MinimumTransferAmount", "Value": "15000000" },
{ "Name": "MinimumWeeklySpendLimit", "Value": "10000000" }
]
}
]
}
}