getGeoRegions
Returns a list of regions available for targeting.
Request
Request structure in JSON format:
{
  "method": "get",
  "params" : { /* required */
    "Page" : {
      "Limit" : (long),
      "Offset" : (long)
    },
    "SelectionCriteria" : { /* required */
      "Name" : (string),
      "RegionIds" : [ (long) ],
      "ExactNames" : [ (string) ]
    },
    "FieldNames" : [ ("GeoRegionId" |"GeoRegionName"|"ParentGeoRegionNames") ] /* required */
  }
}
        
    | 
 Parameter  | 
 Type  | 
 Description  | 
 Required  | 
| 
 params structure (for JSON) / GetRequest (for SOAP)  | 
|||
| 
 
  | 
 LimitOffset  | 
 Structure that defines the page for paginated selection of data.  | 
 No  | 
| 
 
  | 
 GeoRegionsSelectionCriteria  | 
 Region selection criteria. Provide at least one of these parameters:  If the request includes the parameter: 
  | 
 Yes  | 
| 
 
  | 
 array of AdFieldEnum  | 
 Names of top-level parameters to get.  | 
 Yes  | 
| 
 GeoRegionsSelectionCriteria structure  | 
|||
| 
 
  | 
 string  | 
 Select regions with similar names.  | 
 No, if   | 
| 
 
  | 
 array of long  | 
 Selects regions with the specified IDs.  | 
 No, if   | 
| 
 
  | 
 array of string  | 
 Select regions with exactly matching names.  | 
 No, if   | 
Response
Response structure in JSON format:
{
  "result" : { /* required */
    "LimitedBy" : (long),
    "GeoRegions" : [{
      "GeoRegionId" : (long),
      "GeoRegionName" : (string),
      "ParentGeoRegionNames" : { /* nillable */
        "Items" : [ (string) ] /* required */
      }
    }, .. (unbounded)]
  }
}
        
    | 
 Parameter  | 
 Type  | 
 Description  | 
| 
 result structure (for JSON) / GetResponse (for SOAP)  | 
||
| 
 
  | 
 long  | 
 Sequential number of the last object returned. It is included if there was a limit on the number of objects in the response. See the section Paginated data selection.  | 
| 
 
  | 
 array of GeoRegionsGetItem  | 
 List of regions.  | 
| 
 GeoRegionsGetItem structure  | 
||
| 
 
  | 
 long  | 
 ID of the region.  | 
| 
 
  | 
 string  | 
 Name of the region in the language specified in the HTTP Accept-Language header in the request.  | 
| 
 
  | 
 array of string  | 
 Array of names of higher-level regions.  |