Geographical Targeting.
JSON representation |
---|
{ "excludeCountries": boolean, "countries": [ { object ( |
Fields | |
---|---|
exclude |
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. |
postal |
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 | |
---|---|
dart |
DART ID of this region. |
name |
Name of this region. |
country |
Country code of the country to which this region belongs. |
country |
DART ID of the country to which this region belongs. |
region |
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 | |
---|---|
dart |
DART ID of this city. This is the ID used for targeting and generating reports. |
name |
Name of this city. |
country |
Country code of the country to which this city belongs. |
country |
DART ID of the country to which this city belongs. |
region |
Region code of the region to which this city belongs. |
region |
DART ID of the region to which this city belongs. |
metro |
Metro region code of the metro region (DMA) to which this city belongs. |
metro |
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 | |
---|---|
dma |
DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to
. |
dart |
DART ID of this metro region. |
name |
Name of this metro region. |
metro |
Metro code of this metro region. This is equivalent to
. |
country |
Country code of the country to which this metro region belongs. |
country |
DART ID of the country to which this metro region belongs. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |