Country Codes
Note
|
|---|
|
Bing Ads has transitioned from metro codes to DMA® codes for the United States. All campaigns that used to reference metro codes have been migrated to the new DMA® codes as of April 2013. The old codes no longer work. |
To target your ads to display in specific countries, sub geographies such as states and provinces, metropolitan areas, or cities, you must know the targeting code. You can download an XML document that contains the codes from here. Right-click on DMAGeoLocations and select Download.
The document contains a list of <Country> nodes. A country’s <IsDistributionChannel> node determines whether you can target the country. If its text value is true, you can target the country. The <Name> node contains the display name of the country and the <UniqueName> node contains the code that you’d specify in the CountryTargetBid object.
A country can include one or more <SubGeography> nodes. The sub geography identifies a state, province, region, or district that you can target. The <Name> node contains the display name of the sub geography and the <UniqueName> node contains the code that you’d specify in the StateTargetBid object.
Sub geographies can include one or more <MetroArea> nodes that you can target. The <Name> node contains the display name of the metropolitan area and the <UniqueName> node contains the code that you’d specify in the MetroAreaTargetBid object.
Each metropolitan area can include one or more <City> nodes that you can target. The <Name> node contains the display name of the city and the <UniqueName> node contains the code that you’d specify in the CityTargetBid object.
For information about targeting locations, see Target Locations.
The following shows a sample of the contents of the XML document.
<a:Countries xmlns:b="http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.MT.Entities"> <b:Country> <b:Latitude>39.45</b:Latitude> <b:LocationId>190</b:LocationId> <b:Longitude>-98.908</b:Longitude> <b:Name>United States</b:Name> <b:UniqueName>US</b:UniqueName> <b:hasChildNodes>true</b:hasChildNodes> <b:IsDistributionChannel>true</b:IsDistributionChannel> <b:SubGeographyAreas> <b:SubGeography> <b:Latitude>32.7482</b:Latitude> <b:LocationId>4080</b:LocationId> <b:Longitude>-86.8479</b:Longitude> <b:Name>Alabama</b:Name> <b:UniqueName>US-AL</b:UniqueName> <b:hasChildNodes>true</b:hasChildNodes> <b:MetroAreas> <b:MetroArea> <b:Latitude>33.5231</b:Latitude> <b:LocationId>71132</b:LocationId> <b:Longitude>-86.8089</b:Longitude> <b:Name>Birmingham, AL</b:Name> <b:UniqueName>Birmingham, AL, AL US</b:UniqueName> <b:hasChildNodes>true</b:hasChildNodes> <b:Cities> <b:City> <b:Latitude>34.2063</b:Latitude> <b:LocationId>42335</b:LocationId> <b:Longitude>-87.1875</b:Longitude> <b:Name>Addison</b:Name> <b:UniqueName>Addison, Birmingham, AL AL US</b:UniqueName> <b:hasChildNodes>false</b:hasChildNodes> <b:ParentCountryLocationId>190</b:ParentCountryLocationId> <b:ParentMetroAreaLocationId>71132</b:ParentMetroAreaLocationId> <b:ParentSubGeographyLocationId>4080</b:ParentSubGeographyLocationId> <b:ParentSubGeographyName>Alabama</b:ParentSubGeographyName> </b:City> </b:Cities> </b:MetroArea> </b:MetroAreas> </b:SubGeography> </b:SubGeographyAreas> </b:Country> </a:Countries>
DMA® is a registered service mark of The Nielsen Company. Used under License.