GetRegions

Returns a list of regions registered in Yandex.Direct.

Information about regions can be useful when analyzing campaign statistics, forecasting impressions and clicks (using the CreateNewForecast method), and creating or editing ads.

Note. For a method, there is a version of GetBalance (Live).

Input data

The input data structure in JSON is shown below.

{
   "method": "GetRegions"
}

Output data

The method returns an array of RegionInfo objects, each of which corresponds to a single region. The output data structure in JSON is shown below.

{
   "data": [
      {  /* RegionInfo */
         "RegionID": (int),
         "ParentID": (int),
         "RegionName": (string)
      }
      ...
   ]
}

Parameters are described below.

ParameterDescription
RegionInfo object
RegionIDRegion ID in Yandex.Direct.
ParentIDID of the higher-level region.
RegionNameName of the region.