---
title: "Geo Targeting"
canonical: "https://hub.freewheel.tv/space/BC/114327845/Geo%20Targeting"
format: markdown
---
Table of Contents Overview Buyer Cloud augments auction information with geo data from a 3rd party data provider, so geographic data is almost always present for targeting. All of the below geo data is provided by MaxMind, with the exception ZIP+4 and international postal codes, which are provided for customers who opt-in for Digital Element targeting. For more information on this granular targeting, see  ZIP+4 and Full International Postal Code Targeting  below. Targeting Keys Targeting Key Description Recommendation Country Country of the user. Use as INCLUDE or EXCLUDE targeting Region/State Region of the user. In the United States, this is the two-letter State abbreviation. Use as INCLUDE or EXCLUDE targeting Metro Metro code of the user. Based on Google’s metro codes. Only available in the US market. Use as INCLUDE or EXCLUDE targeting City City of the user. Use as INCLUDE or EXCLUDE targeting Congressional Districts Congressional district of the user. Political district support is enabled through ZIP+4 codes, which must be enabled for customers with custom configurations.  Customers with standard Buyer Cloud configurations automatically have access to ZIP+4 and political district targeting.  For more information, see  ZIP+4 and Full International Postal Code Targeting  below. State House State house district of the user. State Senate State senate district of the user. Latitude & Longitude List List of Latitude & Longitude coordinates. For more information, see  here .  Use as INCLUDE or EXCLUDE targeting Latitude & Longitude Present Presence of latitude and longitude values. Use as INCLUDE or EXCLUDE targeting Location Type Location type, e.g., GPS Location Services, IP Address, or user-provided data. Use as INCLUDE or EXCLUDE targeting ZIP Code ZIP code or postal code of the user. ZIP codes can be entered directly in the “ZIP Code” field as a comma-separated list. Standard ZIP targeting accommodates 5-digit US ZIP codes and partial international ZIP codes. Contact support for the matching value formats for partial international ZIP codes. If you are interested in using ZIP+4 or full international postal codes, see  ZIP+4 and Full International Postal Code Targeting  below for more information. Use as INCLUDE or EXCLUDE targeting ZIP Code List If uploading a ZIP code list that contains five-digit codes starting with the number "0", please upload in one of the following two ways: The file could be a .txt file with one ZIP code per row and no headers. The file could be a .csv file with the proper ZIP code format recommended by Microsoft. The 'special format' must be actively selected in Excel to save this as a .csv for upload. For any set of ZIP codes greater than 100, it is recommended to create a “ZIP Code List”.  To create a list : Click on the +New button and select “List” from the drop-down Select “ZIP Code List” from the List Type drop-down Give the list a name and click “Save & Continue” Add ZIP codes in the “Add List Item” field (one per row) OR upload a .txt file of ZIPs (also one per row) OR upload a .csv file of ZIPs (also one per row) ZIP+4 and Full International Postal Code Targeting  Geo data from Digital Element (Digital Envoy) enables granular targeting for ZIP+4 codes in the US, and full international postal codes. To provide ZIP+4 code and full international postal codes for targeting, Buyer Cloud augments the bid request with data from Digital Envoy.​ Maxmind is still the provider for all other geo dimensions. In rare cases, MaxMind and DigitalEnvoy may resolve the same IP to different locations. Clients with custom Buyer Cloud configurations must contact support to enable ZIP+4 and full international postal code targeting. Customers with standard setups do not need to do anything to enable this feature. ZIP+4 Targeting (US Only) To target a ZIP+4 code, enter it as a 9-digit number with a hyphen, in the format NNNNN-NNNN. If you are targeting over 100 ZIP codes on a line item or using the same set of ZIP codes with multiple line items, using a ZIP Code List will streamline the process. For more information on creating a list, see  Lists . When ZIP+4 codes are enabled, you can still target 5-digit ZIP codes as normal, as there is a parent-child relationship between 5-digit and 9-digit zip codes. The ZIP+4 matching logic used by Buyer Cloud is as follows: Line Item Targeting Zip Code Bid Request ZIP Code Bid Request Match Details 10013 10013-0001 Yes Parent ZIP code includes all ZIP+4 children 10013-0001 10013-0001 Yes Exact match 10013-0001 10013 No Targeting ZIP+4 codes requires exact match 10013-0002 10013-0001 No The different ZIP+4 codes do not match ZIP+4 data is not available in report builder, but can be accessed in the following logs: win, bid, conversion, auction, and win logs. Full International Postal Codes Digital Envoy provides full international post codes for geo targeting. Note that Buyer Cloud does not recognize any parent-child relationships between postal codes in non-US regions and their subregions. To target a partial international postal code, apply exact match targeting and target each individual postal code within the partial postal code. The following countries' postal codes are only partially supported by Digital Envoy: Ireland: Only the first three digits are used, to avoid zip codes resolving to specific addresses. Iran: Only the first two digits are provided. Kazakhstan: Only the first three characters are provided. Six-character zip codes are being phased out by Digital Envoy. Palestine: Only the first four characters are provided. Five-character values are being phased out by Digital Envoy. Expand the below section for the full list of available international post codes and how to format them: Country Code Country Name Has Postal Code Postal Code Format abw Aruba No   afg Afghanistan Yes NNNN ago Angola No   aia Anguilla Yes AANNNN ala Aland Islands Yes NNNNN alb Albania Yes NNNN and Andorra Yes AANNN ant Netherlands Antilles No   are United Arab Emirates No   arg Argentina Yes ANNNN/ANNNN AAA/ANNNNAAA arm Armenia Yes NNNN asi Asia (Unknown Country) No   asm American Samoa Yes NNNNN ata Antarctica No   atf French Southern Territories No   atg Antigua and Barbuda No   aus Australia Yes NNNN aut Austria Yes NNNN aze Azerbaijan Yes AA NNNN bdi Burundi No   bel Belgium Yes NNNN ben Benin No   bes Bonaire/Sint Eustatius/Saba No   bfa Burkina Faso No   bgd Bangladesh Yes NNNN bgr Bulgaria Yes NNN/NNNN bhr Bahrain Yes NNN/NNNN bhs Bahamas No   bih Bosnia and Herzegovina Yes NNNNN blm Saint Barthelemy No   blr Belarus Yes NNNNNN blz Belize No   bmu Bermuda Yes AA NN bol Bolivia No   bra Brazil Yes NNNNN-NNN brb Barbados Yes AANNNNN/NNNNN brn Brunei Darussalam Yes AANNNN btn Bhutan Yes NNNNN bvt Bouvet Island No   bwa Botswana No   caf Central African Republic No   can Canada Yes AN ANAN/ANA NAN/ANN NAN cck Cocos (Keeling) Islands Yes NNNN che Switzerland Yes NNNN chl Chile Yes NNNNNNN chn China Yes NNNNN/NNNNNN civ Cote D Ivoire No   cmr Cameroon No   cod Democratic Republic of the Congo No   cog Congo No   cok Cook Islands No   col Colombia Yes NNNNNN com Comoros No   cpv Cape Verde Yes NNNN/NNNN-NNN cri Costa Rica Yes NNNNN cub Cuba Yes NNNNN cuw Curacao No   cxr Christmas Island Yes NNNN cym Cayman Islands Yes AAN-NNNN cyp Cyprus Yes NNNN cze Czech Republic Yes NNN NN deu Germany Yes NNNNN dji Djibouti No   dma Dominica No   dnk Denmark Yes NNNN dom Dominican Republic Yes NNNNN dza Algeria Yes NNNNN ecu Ecuador Yes NNNNN/NNNNNN egy Egypt Yes NNNNN/NNNNNNN eri Eritrea No   esh Western Sahara No   esp Spain Yes NNNNN est Estonia Yes NNNNN eth Ethiopia No   eur Europe (Unknown Country) No   fin Finland Yes NNNNN fji Fiji No   flk Falkland Islands (Malvinas) Yes AAAA NAA fra France Yes NNNNN fro Faroe Islands Yes NNN fsm Federated States of Micronesia Yes NNNNN gab Gabon No   gbr United Kingdom Yes AAN NAA/AANA NAA/AANN NAA/AN NAA/ANA NAA/ANN NAA geo Georgia Yes NNNN ggy Guernsey Yes AAN NAA/AANN NAA/AANNAA gha Ghana No   gib Gibraltar Yes AANN NAA gin Guinea No   glp Guadeloupe Yes NNNNN gmb Gambia No   gnb Guinea-Bissau No   gnq Equatorial Guinea No   grc Greece Yes NNN NN grd Grenada No   grl Greenland Yes NNNN gtm Guatemala Yes NNNNN guf French Guiana Yes NNNNN gum Guam Yes NNNNN guy Guyana No   hkg Hong Kong No   hmd Heard and Mc Donald Islands No   hnd Honduras Yes NNNNN hrv Croatia Yes NNNNN hti Haiti Yes AA NNNN/NNNN hun Hungary Yes NNNN idn Indonesia Yes NNNNN/NNNNNN imn Isle of Man Yes AAN NAA ind India Yes NNNNNN iot British Indian Ocean Territory No   irl Ireland Yes ANA/ANN (First 3 characters only, to avoid zip codes resolving to specific addresses) irn Iran (Islamic Republic of) Yes NN (First 2 digits only) irq Iraq Yes NN/NNNNN isl Iceland Yes NNN isr Israel Yes NNNNN NN ita Italy Yes NNNN/NNNNN jam Jamaica Yes AAAAANN jey Jersey Yes AAN NAA jor Jordan Yes NNNNN jpn Japan Yes NNN-NNNN kaz Kazakhstan Yes ANN/NNNNNN (First 3 characters only. Six-character values are being phased out) ken Kenya No   kgz Kyrgyzstan Yes NNNNNN khm Cambodia Yes NNNNN/NNNNNN kir Kiribati Yes AANNNN kna Saint Kitts And Nevis Yes AANNNN/NNNNN kor South Korea Yes NNNNN kwt Kuwait Yes NNNNN lao Lao Peoples Democratic Republic Yes NNNN/NNNNN lbn Lebanon Yes NNNN lbr Liberia Yes NNNN lby Libyan Arab Jamahiriya No   lca Saint Lucia Yes AANN NNN lie Liechtenstein Yes NNNN lka Sri Lanka Yes NNNNN lso Lesotho Yes NNN ltu Lithuania Yes NNNNN lux Luxembourg Yes NNNN lva Latvia Yes AA-NNNN/NNNN mac Macau No   maf Saint Martin Yes NNNNN mar Morocco Yes NNNNN mco Monaco Yes NNNNN mda Moldova Yes NNNN mdg Madagascar Yes NNN/NNNNN/NNNNNN mdv Maldives Yes NNNNN mex Mexico Yes NNNNN mhl Marshall Islands Yes NNNNN mkd Macedonia Yes NNNN mli Mali Yes NNNNN mlt Malta Yes AAA NNNN mmr Myanmar Yes NNNNN/NNNNNNN mne Montenegro Yes NNNNN mng Mongolia Yes NNNNN/NNNNNN mnp Northern Mariana Islands Yes NNNNN moz Mozambique Yes NNNN mrt Mauritania No   msr Montserrat Yes AAANNNN mtq Martinique Yes NNNNN mus Mauritius Yes ANNN/ANNNN/NNNNN mwi Malawi No   mys Malaysia Yes NNNNN myt Mayotte Yes NNNNN nam Namibia No   ncl New Caledonia Yes NNNNN ner Niger No   nfk Norfolk Island No   nga Nigeria Yes NNNNN/NNNNNN/NNNNNNN nic Nicaragua Yes NNNNN niu Niue Yes NNNN nld Netherlands Yes NNNN AA nor Norway Yes NNNN npl Nepal Yes NNNNN nru Nauru No   nzl New Zealand Yes NNNN omn Oman Yes NNN pak Pakistan Yes NNNNN pan Panama No   pcn Pitcairn Yes AAAA NAA per Peru Yes NNNNN phl Philippines Yes NNNN/NNNNNN plw Palau Yes NNNNN png Papua New Guinea Yes NNN pol Poland Yes NN-NNN pri Puerto Rico Yes NNNNN prk North Korea No   prt Portugal Yes NNNN/NNNN-NNN pry Paraguay Yes NNNN/NNNNNN pse Palestinian Territories Yes ANNN/NNNNN (First 4 characters only. Five-character values are being phased out) pyf French Polynesia Yes NNNNN qat Qatar No   reu Reunion Yes NNNNN rou Romania Yes NNNNN/NNNNNN rus Russian Federation Yes NNNNNN rwa Rwanda No   sau Saudi Arabia Yes NNNNN sdn Sudan No   sen Senegal Yes NNNNN sgp Singapore Yes NNNNNN sgs South Georgia / South Sandwich Isl Yes AAAA NAA shn St. Helena Yes AAAA NAA/AAAANAA sjm Svalbard and Jan Mayen Islands Yes NNNN slb Solomon Islands Yes NNNN sle Sierra Leone No   slv El Salvador No   smr San Marino Yes NNNNN som Somalia No   spm St. Pierre and Miquelon Yes NNNNN srb Serbia Yes NNNNN ssd South Sudan No   stp Sao Tome and Principe No   sur Suriname No   svk Slovakia (Slovak Republic) Yes NNN NN/NNNNN svn Slovenia Yes NNNN swe Sweden Yes NNN NN swz Swaziland Yes ANNN sxm Sint Maarten No   syc Seychelles No   syr Syrian Arab Republic No   tca Turks and Caicos Islands Yes AAAA NAA tcd Chad No   tgo Togo No   tha Thailand Yes NNNNN tjk Tajikistan Yes NNNNNN tkl Tokelau No   tkm Turkmenistan Yes NNNNNN tls Timor-Leste Yes NNNNN ton Tonga No   tto Trinidad and Tobago No   tun Tunisia Yes NNNN tur Turkey Yes NNNNN tuv Tuvalu No   twn Taiwan Province of China Yes NNN NN/NNNNNN tza Tanzania Yes NNNNN uga Uganda No   ukr Ukraine Yes NNNNN umi Us Minor Outlying Islands Yes NNNNN ury Uruguay Yes NNNNN usa United States Yes NNNNN uzb Uzbekistan Yes NNNNNN vat Holy See (Vatican City State) Yes NNN vct Saint Vincent and the Grenadines Yes AANNNN ven Venezuela Yes NNNN vgb British Virgin Islands Yes AANNNN vir Us Virgin Islands Yes NNNNN vnm Viet Nam Yes NNNNN/NNNNNN vut Vanuatu No   wlf Wallis and Futuna Islands Yes NNNNN wsm Samoa No   yem Yemen No   zaf South Africa Yes NNNN zmb Zambia No   zwe Zimbabwe No   Geo Targeting FAQs Geo Targeting Logic Q:  How does geo targeting work if no IP address is passed in a bid request? A:  If there is no IP address in a bid request, Buyer Cloud relies on the geo information sent from the SSP or publisher in the bid request Q : Do you augment latitude and longitude data? A : No, we never generate lat/long information using lookups nor augment a bid request's lat/long with a vendor's third-party data. Q : Why am I delivering in subregions of the region I am excluding? A : The database for some countries has a two-level hierarchy for regions. We flatten the hierarchy when we import it and don’t support parent to child relationships. For example, if you exclude the New York City region, but the bid request matches Manhattan, you may still serve on that bid request. This behavior is more prevalent in Europe. International Geo Targeting Q : How does Geo Targeting work for International postal codes? A : Maxmind support for postal code targeting in the platform is determined by what is passed from Maxmind. This differs by country, and for some only part of the postal code is supported by Maxmind. For example in the USA 5 digits are supported, CA first 3 digits are supported, UK first 3-4 digits supported, Ireland first 3 digits, Italy 5 digits. For the countries where only the first section of the postal code is passed, e.g. CA and UK, the customer needs to match this format when adding into targeting. If the customer inputs the full postal code, there will be no “matching” and the Line Item is not expected to bid. For customers using Digital Envoy, full international postal codes are provided. See the above section for the list of provided international postal codes and their format requirements. Q : Because you truncate the last octet of an IP address in EMEA, do you lookup the geo in EMEA before truncating? A : Yes, we look up the geo data prior to truncating the IP address.