Page Summary
-
Geographical targeting allows you to target or exclude ads based on countries, regions, cities, metros, and postal codes.
-
When targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
-
Regions, cities, and metros can be targeted, but if a more specific location within them is targeted, do not target the broader area or its country.
-
For countries, regions, cities, metros, and postal codes, typically only a specific ID (
dartId,dmaId, orid) is required for targeting, with other fields being automatically populated.
Geographical Targeting.
| JSON representation |
|---|
{ "excludeCountries": boolean, "countries": [ { object ( |
| Fields | |
|---|---|
excludeCountries |
Whether or not to exclude the countries in the |
countries[] |
Countries to be targeted or excluded from targeting, depending on the setting of the |
regions[] |
Regions to be targeted. For each region only |
cities[] |
Cities to be targeted. For each city only |
metros[] |
Metros to be targeted. For each metro only |
postalCodes[] |
Postal codes to be targeted. For each postal code only |
Region
Contains information about a region that can be targeted by ads.
| JSON representation |
|---|
{ "dartId": string, "name": string, "countryCode": string, "countryDartId": string, "regionCode": string, "kind": string } |
| Fields | |
|---|---|
dartId |
DART ID of this region. |
name |
Name of this region. |
countryCode |
Country code of the country to which this region belongs. |
countryDartId |
DART ID of the country to which this region belongs. |
regionCode |
Region code. |
kind |
Identifies what kind of resource this is. Value: the fixed string |
City
Contains information about a city that can be targeted by ads.
| JSON representation |
|---|
{ "dartId": string, "name": string, "countryCode": string, "countryDartId": string, "regionCode": string, "regionDartId": string, "metroCode": string, "metroDmaId": string, "kind": string } |
| Fields | |
|---|---|
dartId |
DART ID of this city. This is the ID used for targeting and generating reports. |
name |
Name of this city. |
countryCode |
Country code of the country to which this city belongs. |
countryDartId |
DART ID of the country to which this city belongs. |
regionCode |
Region code of the region to which this city belongs. |
regionDartId |
DART ID of the region to which this city belongs. |
metroCode |
Metro region code of the metro region (DMA) to which this city belongs. |
metroDmaId |
ID of the metro region (DMA) to which this city belongs. |
kind |
Identifies what kind of resource this is. Value: the fixed string |
Metro
Contains information about a metro region that can be targeted by ads.
| JSON representation |
|---|
{ "dmaId": string, "dartId": string, "name": string, "metroCode": string, "countryCode": string, "countryDartId": string, "kind": string } |
| Fields | |
|---|---|
dmaId |
DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to |
dartId |
DART ID of this metro region. |
name |
Name of this metro region. |
metroCode |
Metro code of this metro region. This is equivalent to |
countryCode |
Country code of the country to which this metro region belongs. |
countryDartId |
DART ID of the country to which this metro region belongs. |
kind |
Identifies what kind of resource this is. Value: the fixed string |