GeographicalDictionaryServiceGeographicalDictionaryService is a lookup service that includes operations to search for geographical locations (represented by GeoLocation objects). The GeoLocation objects represent a targetable area and they are hierarchical in nature. For example, a GeoLocation object representing a country contains GeoLocation objects that can represent States, and a State GeoLocation object can contain GeoLocation objects that represent Cities, and so on. The levels and depth of hierarchy depend on the market area. The service contains operations to retrieve geographical locations based on either WOEID, or name of the area (such as the name of Country, State, City), or radial distance from a well-known geographical location. Each geographical location is mapped to a WOEID which is unique to a given market. The mapping between GeoLocation object and WOEID is immutable and we recommended that you store the mapping and use the WOEID directly in the API calls. Operations
getAncestorGeoLocationsRetrieve the list of geographical locations that are ancestors of the specified geographical location WOEID.
Capability required: CampaignRead
Parameters
ResponseGeoLocation[] - The list of geographical locations that are ancestors of the specified geographical location. getGeoLocationRetrieve the geographical location details for the specified WOEID.
Capability required: CampaignRead
Parameters
ResponseGeoLocation - The geographical location details. getGeoLocationsRetrieve a list of geographical locations (based on the WOEIDs). This operation accepts a maximum of 100 (geographical locations') WOEIDs as input. If more than 100 WOEIDs are specified, this operation retrieves details for only the first 100 WOEIDs and the rest are discarded. Note: This operation is same as the getGeoLocation() operation except that this is used to retrieve multiple geographical locations, and the order of WOEIDs returned may be different from the order in the input.
Capability required: CampaignRead
Parameters
ResponseGeoLocation[] - The list of geographical locations. getGeoLocationsByParentByLevelRetrieve all the geographical locations at the specified level which are children of the specified parent.
Capability required: CampaignRead
Parameters
ResponseGeoLocation[] - The list of geographical locations at the specified level for the given parent WOEID. getGeoLocationsByStringRetrieve the geographical locations matching the specified name.
Capability required: CampaignRead
Parameters
ResponseGeoLocationProbability[] - The list of geographical locations that match the specified name. getGeoLocationsByStringByCountryRetrieve the geographical locations that match the specified geographical location name in the specified country.
Capability required: CampaignRead
Parameters
ResponseGeoLocationProbability[] - The list of geographical locations that match the specified geographical location name in the specified country. getGeoLocationsByStringsRetrieve the geographical locations matching the specified names. This operations accepts a maximum of 100 strings as input. If more than 100 strings are specified, this operation uses only the first 100 specified strings and the remaining strings are discarded. Note: This is similar to the getGeoLocationsByString() except that here multiple strings, representing geographical locations' names are passed for matching. A maximum of 1000 matches will be returned.
Capability required: CampaignRead
Parameters
ResponseGeoLocationProbabilitySet[] - The list of geographical locations that match the specified names. getTargetableGeoLevelsRetrieve the list of TargetingType objects for the specified market. A TargetingType object represents the levels at which targets can be created.
Capability required: CampaignRead
Parametersnone ResponseTargetingType[] - The list of TargetingType objects (representing the available and supported geographical levels that can be targeted) getTopLevelGeoLocationsRetrieve all the top level geographical locations (for the market to which user/license belongs).
Capability required: CampaignRead
Parametersnone ResponseGeoLocation[] - The list of top level geographical locations. getZipGeoLocationsWithinRadiusRetrieve the list of ZIP level geographical locations that are located within the specified radius of a ZIP level geographical location WOEID. The maximum radius that can be specified is 10 miles.
Capability required: CampaignRead
Parameters
ResponseGeoLocation[] - The list of geographical locations that are within the given radius of the specified geographical location. |