A Proximity criterion. The geo point and radius determine what geographical area is included. The address is a description of the geo point that does not affect ad serving.
There are two ways to create a proximity. First, by setting an address and radius. The geo point will be automatically computed. Second, by setting a geo point and radius. The address is an optional label that won't be validated.
JSON representation |
---|
{ "geoPoint": { object ( |
Fields | |
---|---|
geoPoint |
Latitude and longitude. |
radiusUnits |
The unit of measurement of the radius. Default is KILOMETERS. |
address |
Full address. |
radius |
The radius of the proximity. |
GeoPointInfo
Geo point for proximity criterion.
JSON representation |
---|
{ "longitudeInMicroDegrees": integer, "latitudeInMicroDegrees": integer } |
Fields | |
---|---|
longitudeInMicroDegrees |
Micro degrees for the longitude. |
latitudeInMicroDegrees |
Micro degrees for the latitude. |
ProximityRadiusUnits
The unit of radius distance in proximity (for example, MILES)
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
Used for return value only. Represents value unknown in this version. |
MILES |
Miles |
KILOMETERS |
Kilometers |
AddressInfo
Address for proximity criterion.
JSON representation |
---|
{ "postalCode": string, "provinceCode": string, "countryCode": string, "provinceName": string, "streetAddress": string, "streetAddress2": string, "cityName": string } |
Fields | |
---|---|
postalCode |
Postal code. |
provinceCode |
Province or state code. |
countryCode |
Country code. |
provinceName |
Province or state name. |
streetAddress |
Street address line 1. |
streetAddress2 |
Street address line 2. This field is write-only. It is only used for calculating the longitude and latitude of an address when geoPoint is empty. |
cityName |
Name of the city. |