AI-generated Key Takeaways
-
Geographical targeting allows for including or excluding countries, regions, cities, metros, and postal codes for ad campaigns.
-
When targeting a specific geographic level (e.g., region), do not target or exclude its parent level (e.g., country).
-
Regions, cities, and metros each have specific JSON representations and fields containing identifiers and related geographic information.
-
The primary identifier used for targeting and reporting varies depending on the geographic level, such as
dartId
for regions and cities, anddmaId
for metros.
Geographical Targeting.
JSON representation |
---|
{ "excludeCountries": boolean, "countries": [ { object ( |
Fields | |
---|---|
excludeCountries |
Whether or not to exclude the countries in the
field from targeting. If false, the
field refers to countries which will be targeted by the ad. |
countries[] |
Countries to be targeted or excluded from targeting, depending on the setting of the
field. For each country only
is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country. |
regions[] |
Regions to be targeted. For each region only
is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region. |
cities[] |
Cities to be targeted. For each city only
is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city. |
metros[] |
Metros to be targeted. For each metro only
is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro. |
postalCodes[] |
Postal codes to be targeted. For each postal code only
is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code. |
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
. |